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/115786.html below:

[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. [Python-Dev] cpython (3.2): Avoid the compiler warning about the unused return value.Benjamin Peterson benjamin at python.org
Sat Jan 21 23:24:56 CET 2012
2012/1/21 Antoine Pitrou <solipsis at pitrou.net>:
> On Sat, 21 Jan 2012 21:51:43 +0100
> gregory.p.smith <python-checkins at python.org> wrote:
>> http://hg.python.org/cpython/rev/d01fecadf3ea
>> changeset:   74561:d01fecadf3ea
>> branch:      3.2
>> parent:      74558:03e61104f7a2
>> user:        Gregory P. Smith <greg at krypto.org>
>> date:        Sat Jan 21 12:31:25 2012 -0800
>> summary:
>>   Avoid the compiler warning about the unused return value.
>
> 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.


-- 
Regards,
Benjamin
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