[op5-users] Compiling a new merlin-src, getting warnings ??
Andreas Ericsson
ae at op5.se
Mon Sep 28 16:34:12 CEST 2009
On 09/25/2009 11:57 PM, Mirza Dedic wrote:
> I get the following errors when I run make on a fresh "git clone git://git.op5.org/nagios/merlin.git merlin-src".
>
> root at van-nagios-new:/tempdll/merlin-src# make
> CC module.o
> CC hooks.o
> CC control.o
> CC hash.o
> sh gen-version.sh> version.c
> CC version.o
> CC logging.o
> CC cfgfile.o
> CC ipc.o
> ipc.c: In function âipc_send_eventâ:
> ipc.c:303: warning: dereferencing type-punned pointer will break strict-aliasing rules
> CC shared.o
> CC io.o
> CC protocol.o
> CC data.o
> CC binlog.o
> LINK merlin.so
> CC status.o
> CC daemonize.o
> CC daemon.o
> daemon.c: In function âpolling_loopâ:
> daemon.c:270: warning: âresultâ is used uninitialized in this function
> daemon.c:230: note: âresultâ was declared here
> CC net.o
> CC sql.o
> CC db_updater.o
> LINK merlind
> root at van-nagios-new:/tempdll/merlin-src#
>
> Should I be worried?
>
Be afraid. Be very afraid.
On a more serious note; The first warning can be safely ignored. It
just means GCC can't use one certain type of optimization when it's
handling the variable in question (it's an effective one, so we'll
want to fix that eventually, but it's nothing major).
The second one could be a bit more serious but really isn't, since
we never use the imported object state anyway.
So in short; No, they're nothing to worry about.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
More information about the op5-users
mailing list