[MacPorts] #37067: jshon @20120801 fails to build due to use of -Werror
MacPorts
noreply at macports.org
Tue Oct 29 04:52:12 PDT 2013
#37067: jshon @20120801 fails to build due to use of -Werror
---------------------+--------------------------------
Reporter: ag@… | Owner: macports-tickets@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: jshon |
---------------------+--------------------------------
Changes (by g5pw@…):
* status: closed => reopened
* resolution: fixed =>
Comment:
Hmm... apparently the compilation fails with gcc4.2 with a warning that
gets converted into an error:
{{{
/usr/bin/gcc-4.2 -arch x86_64 -Os -std=c99 -Wall -pedantic -Wextra -Werror
-c -o jshon.o jshon.c
cc1: warnings being treated as errors
jshon.c: In function ‘read_stream’:
jshon.c:350: warning: format ‘%zd’ expects type ‘signed size_t’, but
argument 3 has type ‘off_t’
jshon.c:358: warning: format ‘%zd’ expects type ‘signed size_t’, but
argument 3 has type ‘off_t’
make: *** [jshon.o] Error 1
}}}
Of course, we can always blacklist gcc4.2 but I prefer to get rid of the
-Werror argument.
--
Ticket URL: <https://trac.macports.org/ticket/37067#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list