homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Compiler warnings when compiling Python 3.0 with a C89 compiler
Type: compile error Stage: test needed
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, christian.heimes, georg.brandl, loewis
Priority: normal Keywords:

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:42adminsetgithub: 48750
2010年08月21日 23:26:55georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg114605

resolution: out of date
2008年12月03日 09:50:48christian.heimessetmessages: + msg76819
2008年12月03日 05:59:23loewissetnosy: + loewis
messages: + msg76815
2008年12月03日 00:14:39christian.heimescreate

AltStyle によって変換されたページ (->オリジナル) /