[MacPorts] #37067: jshon @20120801 fails to build due to use of -Werror
MacPorts
noreply at macports.org
Sat Jan 25 06:53:01 PST 2014
#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 |
---------------------+--------------------------------
Comment (by egall@…):
Replying to [comment:5 g5pw@…]:
> 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.
Ran into this error today too. I also prefer getting rid of the `-Werror`
flag.
--
Ticket URL: <https://trac.macports.org/ticket/37067#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list