A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115787.html below:

Avoid the compiler warning about the unused return value.

[Python-Dev] cpython (3.2): Avoid the compiler warning about the unused return value. [Python-Dev] cpython (3.2): Avoid the compiler warning about the unused return value.Stefan Krah stefan at bytereef.org
Sat Jan 21 23:33:08 CET 2012
Benjamin Peterson <benjamin at python.org> wrote:
> > Can't that give you another warning about the ssize_t being truncated to
> > int?
> > How about the following instead?
> >
> >   (void) write(...);
> 
> Also, if you use a recent enough version of gcc, ./configure will
> disable the warning. I would prefer if stop using these kinds of
> hacks.

Do you mean (void)write(...)? Many people think this is good practice,
since it indicates to the reader that the return value is deliberately
ignored.



Stefan Krah


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4