On Thu, Mar 11, 2004 at 09:14:17PM -0800, Daniel L. Rall wrote:
> Gustav Munkby wrote:
> >I too get a lot of warnings, allthough mine look like:
> >
> >subversion/bindings/swig/java/svn_delta.c: In function
> >`Java_org_tigris_subversion_swig_deltaJNI_get_1svn_1delta_1editor_1t_1close_1edit':
> >subversion/bindings/swig/java/svn_delta.c:1198: warning: dereferencing
> >type-punned pointer will break strict-aliasing rules
> >subversion/bindings/swig/java/svn_delta.c:1201: warning: dereferencing
> >type-punned pointer will break strict-aliasing rules
>
> Gustav and I investigated these warnings via the gcc man page's doc for its
> -fstrict-aliasing flag. Gustav later discovered they can be supressed via
> changing the flags included in SWIG_JAVA_COMPILE (as follows). He
> mentioned that this would involve changing swig.m4, which would affect the
> other SWIG bindings.
>
> SWIG_JAVA_COMPILE = gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
> -fPIC -fno-strict-aliasing
>
> If someone with more SWIG knowledge would take a look at the code
> generating these warnings, it would be appreciated.
I'd rather figure out how to fix the code than to turn off warnings. If
you want to grab me sometime I'll be happy to work with you to see if we
can't come up with a way to fix the warnings.
--
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 13 01:30:26 2004