C compiler warnings on Linux Enterprise AS release 4
Jim Savoy <[email protected]> Wed, 03 Aug 2005 15:49:12 -0600
| Newsgroups | gmane.comp.security.virus.vtools |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I compiled the new sophie-3.04 on my Linux Enterprise release 3 and
it worked great with the new sophos engine. But when I did the same on
Red Hat Enterprise AS release 4, I got these compiler warnings:
=======================
[root@]# make
gcc -g -O2 -Wall -Isav_if -c -o sophie.o sophie.c
gcc -g -O2 -Wall -Isav_if -c -o sophie_init.o sophie_init.c
sophie_init.c: In function `sophie_init':
sophie_init.c:26: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sophie_init.c:35: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sophie_init.c: In function `sophie_show_settings':
sophie_init.c:518: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sophie_init.c:536: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -g -O2 -Wall -Isav_if -c -o sophie_scandir.o sophie_scandir.c
gcc -g -O2 -Wall -Isav_if -c -o sophie_core.o sophie_core.c
sophie_core.c: In function `sophie_log_virus':
sophie_core.c:408: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sophie_core.c: In function `sophie_scanfile':
sophie_core.c:442: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sophie_core.c: In function `sophie_version':
sophie_core.c:752: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -g -O2 -Wall -Isav_if -c -o sophie_notify.o sophie_notify.c
gcc -g -O2 -Wall -Isav_if -Wl,--strip-all -Wl,-rpath,/usr/local/lib
-L/usr/local/lib -lsavi
sophie.o sophie_init.o sophie_scandir.o sophie_core.o sophie_notify.o -o
sophie
=======================
Running it anyway. It seems fine. Just thought I would mention it in case
it may be something I should be wary about.