[issue4500] Compiler warnings when compiling Python 3.0 with a C89 compiler
Christian Heimes
report at bugs.python.org
Wed Dec 3 01:14:40 CET 2008
New submission from Christian Heimes <lists at cheimes.de>:
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
----------
assignee: barry
components: Interpreter Core
messages: 76804
nosy: barry, christian.heimes
priority: normal
severity: normal
stage: test needed
status: open
title: Compiler warnings when compiling Python 3.0 with a C89 compiler
type: compile error
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4500>
_______________________________________
More information about the Python-bugs-list
mailing list