[pgpool-general: 4977] Re: Warnings in pool_proto_modules.c

Tatsuo Ishii ishii at sraoss.co.jp
Mon Sep 12 21:36:05 JST 2016


> Hello, 
> 
> 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.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


More information about the pgpool-general mailing list