On Fri, May 27, 2016 at 1:39 PM, Kain Abel <isoru...@gmail.com> wrote:

>
> ./src/cson_amalgamation.c: In function ‘cson_value_new_integer’:
> ./src/cson_amalgamation.c:2863:13: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
>              *CSON_INT(c) = v;
>

Hi again Kain,

i suspect that this warning might be specific to gcc 4.4. i just tried it
on the original sources with gcc 4.8 and it does not warn there (and also
didn't with the older gcc versions it was original developed with):

[stephan@host:~/fossil/cson]$ gcc -c -pedantic -Wall -Werror -fPIC
-Wstrict-aliasing -g -std=c89 cson_amalgamation.c
[stephan@host:~/fossil/cson]$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

also tried with -std=c99.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to