Issue 4500: Compiler warnings when compiling Python 3.0 with a C89 compiler (original) (raw)

Issue4500

Created on 2008-12-03 00:14 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg76804 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-12-03 00:14
Should / must we do anything about the issue? At least Python builds with a C89 compiler except of ssl and socket module. Those modules include non C89 compliant header files from the OS (bluetooth and tpic). $ LC_ALL="C" CC="gcc -std=c89" make gcc -std=c89 -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Objects/object.o Objects/object.c Objects/object.c: In function 'internal_print': Objects/object.c:295: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result Objects/object.c:304: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result gcc -std=c89 -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/marshal.o Python/marshal.c Python/marshal.c: In function 'w_string': Python/marshal.c:90: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result gcc -std=c89 -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/main.o Modules/main.c Modules/main.c: In function 'usage': Modules/main.c:134: warning: format not a string literal and no format arguments Modules/main.c:135: warning: format not a string literal and no format arguments Modules/main.c:136: warning: format not a string literal and no format arguments
msg76815 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-12-03 05:59
What operating system is this on? In any case, the warnings look harmless.
msg76819 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-12-03 09:50
I'm Ubuntu 8.10 AMD64.
msg114605 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-21 23:26
These are probably all fixed by now.
History
Date User Action Args
2022-04-11 14:56:42 admin set github: 48750
2010-08-21 23:26:55 georg.brandl set status: open -> closednosy: + georg.brandlmessages: + resolution: out of date
2008-12-03 09:50:48 christian.heimes set messages: +
2008-12-03 05:59:23 loewis set nosy: + loewismessages: +
2008-12-03 00:14:39 christian.heimes create