[pgpool-general: 4981] Re: Warnings in pool_proto_modules.c
ishii at sraoss.co.jp
Tue Sep 13 09:53:22 JST 2016
>> I build pgpool-II 3.5.3 on Debian Wheezy with gcc 4.7. I have those warnings in pool_proto_modules.c:
>> pgpool2-3.5.3/src/protocol/pool_proto_modules.c: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]:
>> switch (nodeTag(&con->val))
>> and some:
>> pgpool2-3.5.3/src/protocol/pool_proto_modules.c:3226: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>> ereport(ERROR, (errmsg("unrecognized node type: %d",
>> Is it normal? Sorry, if you already know about it.I think it would be better if you know about it.
> Thank you for the report. The code in question was imported from
> PostgreSQL. But in compiling PostgreSQL, we don't see the
> warning. Why? Because PostgreSQL is compiled with
> -fno-strict-aliasing. I will add this flag to Makefile in Pgpool-II.
SRA OSS, Inc. Japan
More information about the pgpool-general