Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Installing with pip/easy_install yields lots of warnings #40

Closed
cgbystrom opened this Issue · 2 comments

3 participants

@cgbystrom
Owner

If these warnings are safe to ignore, why are they printed?
Built with gcc/Xcode on Mac OS X.

Installing collected packages: ujson
  Running setup.py install for ujson
    building 'ujson' extension
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I./python -I./lib -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ./python/ujson.c -o build/temp.macosx-10.6-universal-2.6/./python/ujson.o
    ./python/ujson.c:6: warning: function declaration isn’t a prototype
    ./python/ujson.c:6: warning: function declaration isn’t a prototype
    ./python/ujson.c:6: warning: function declaration isn’t a prototype
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I./python -I./lib -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ./python/objToJSON.c -o build/temp.macosx-10.6-universal-2.6/./python/objToJSON.o
    In file included from ./python/objToJSON.c:4:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./python/objToJSON.c:71: warning: function declaration isn’t a prototype
    ./python/objToJSON.c: In function ‘PyLongToINT64’:
    ./python/objToJSON.c:101: warning: unused variable ‘obj’
    ./python/objToJSON.c: In function ‘objToJSON’:
    ./python/objToJSON.c:695: warning: initialization from incompatible pointer type
    ./python/objToJSON.c:706: warning: initialization from incompatible pointer type
    ./python/objToJSON.c: At top level:
    ./python/objToJSON.c:93: warning: ‘PyIntToINT64’ defined but not used
    ./python/objToJSON.c:71: warning: function declaration isn’t a prototype
    ./python/objToJSON.c: In function ‘PyLongToINT64’:
    ./python/objToJSON.c:101: warning: unused variable ‘obj’
    ./python/objToJSON.c: In function ‘objToJSON’:
    ./python/objToJSON.c:695: warning: initialization from incompatible pointer type
    ./python/objToJSON.c:706: warning: initialization from incompatible pointer type
    ./python/objToJSON.c: At top level:
    ./python/objToJSON.c:93: warning: ‘PyIntToINT64’ defined but not used
    In file included from ./python/objToJSON.c:4:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./python/objToJSON.c:71: warning: function declaration isn’t a prototype
    ./python/objToJSON.c: In function ‘PyLongToINT64’:
    ./python/objToJSON.c:101: warning: unused variable ‘obj’
    ./python/objToJSON.c: In function ‘objToJSON’:
    ./python/objToJSON.c:695: warning: initialization from incompatible pointer type
    ./python/objToJSON.c:706: warning: initialization from incompatible pointer type
    ./python/objToJSON.c: At top level:
    ./python/objToJSON.c:86: warning: ‘PyIntToINT32’ defined but not used
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I./python -I./lib -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ./python/JSONtoObj.c -o build/temp.macosx-10.6-universal-2.6/./python/JSONtoObj.o
    In file included from ./python/JSONtoObj.c:2:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    In file included from ./python/JSONtoObj.c:2:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I./python -I./lib -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ./lib/ultrajsonenc.c -o build/temp.macosx-10.6-universal-2.6/./lib/ultrajsonenc.o
    In file included from ./lib/ultrajsonenc.c:37:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringUnvalidated’:
    ./lib/ultrajsonenc.c:199: warning: value computed is not used
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringValidated’:
    ./lib/ultrajsonenc.c:216: warning: ‘ucs’ may be used uninitialized in this function
    ./lib/ultrajsonenc.c:121: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringUnvalidated’:
    ./lib/ultrajsonenc.c:199: warning: value computed is not used
    ./lib/ultrajsonenc.c: At top level:
    ./lib/ultrajsonenc.c:414: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringValidated’:
    ./lib/ultrajsonenc.c:216: warning: ‘ucs’ may be used uninitialized in this function
    In file included from ./lib/ultrajsonenc.c:37:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./lib/ultrajsonenc.c:121: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringUnvalidated’:
    ./lib/ultrajsonenc.c:199: warning: value computed is not used
    ./lib/ultrajsonenc.c: At top level:
    ./lib/ultrajsonenc.c:414: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsonenc.c: In function ‘Buffer_EscapeStringValidated’:
    ./lib/ultrajsonenc.c:216: warning: ‘ucs’ may be used uninitialized in this function
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I./python -I./lib -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ./lib/ultrajsondec.c -o build/temp.macosx-10.6-universal-2.6/./lib/ultrajsondec.o
    In file included from ./lib/ultrajsondec.c:37:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./lib/ultrajsondec.c: In function ‘decode_string’:
    ./lib/ultrajsondec.c:424: warning: pointer targets in assignment differ in signedness
    ./lib/ultrajsondec.c: In function ‘decode_array’:
    ./lib/ultrajsondec.c:633: warning: value computed is not used
    ./lib/ultrajsondec.c:55: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:75: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:283: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:301: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:323: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:341: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:391: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c: In function ‘decode_string’:
    ./lib/ultrajsondec.c:424: warning: pointer targets in assignment differ in signedness
    ./lib/ultrajsondec.c: At top level:
    ./lib/ultrajsondec.c:620: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c: In function ‘decode_array’:
    ./lib/ultrajsondec.c:633: warning: value computed is not used
    ./lib/ultrajsondec.c: At top level:
    ./lib/ultrajsondec.c:670: warning: ‘fastcall’ attribute directive ignored
    ./lib/ultrajsondec.c:746: warning: ‘fastcall’ attribute directive ignored
    In file included from ./lib/ultrajsondec.c:37:
    ./lib/ultrajson.h:122:1: warning: "__LITTLE_ENDIAN__" redefined
    <built-in>: warning: this is the location of the previous definition
    ./lib/ultrajsondec.c:55: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:75: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:283: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:301: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:323: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:341: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:391: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c: In function ‘decode_string’:
    ./lib/ultrajsondec.c:424: warning: pointer targets in assignment differ in signedness
    ./lib/ultrajsondec.c: At top level:
    ./lib/ultrajsondec.c:620: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c: In function ‘decode_array’:
    ./lib/ultrajsondec.c:633: warning: value computed is not used
    ./lib/ultrajsondec.c: At top level:
    ./lib/ultrajsondec.c:670: warning: ‘fastcall’ attribute ignored
    ./lib/ultrajsondec.c:746: warning: ‘fastcall’ attribute ignored
@jskorpan
Collaborator
@gsakkis

@cgbystrom I've fixed most warnings in my fork: gsakkis/ultrajson@6d44177

@jskorpan jskorpan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.