Hello,

During a recent build, we saw the following warnings in our build logs:

rpc/tcstp/rpc.c: In function 'access_control':
rpc/tcstp/rpc.c:542: warning: dereferencing pointer 'sa' does break 
strict-aliasing rules
rpc/tcstp/rpc.c:536: warning: dereferencing pointer 'sa' does break 
strict-aliasing rules
rpc/tcstp/rpc.c:532: note: initialized from here

The fix is to add -fno-strict-aliasing to the compile flags. The patch below
should fix this.

Signed-off-by:  Steve Grubb <[email protected]>

----

diff -ur trousers-0.3.13.orig/configure.in trousers-0.3.13/configure.in
--- trousers-0.3.13.orig/configure.in   2014-04-24 14:05:43.000000000 -0400
+++ trousers-0.3.13/configure.in        2014-06-06 14:19:24.591000008 -0400
@@ -359,7 +359,7 @@
 AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is 
available]) ])
  
 if test "x${GCC}" = "xyes"; then
-       CFLAGS="$CFLAGS -W -Wall -Wno-unused-parameter -Wsign-compare"
+       CFLAGS="$CFLAGS -W -Wall -Wno-unused-parameter -Wsign-compare 
-fno-strict-aliasing"
 fi
 
 CFLAGS="$CFLAGS -I../include \


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to