httpd warning question
Chris Johns
chrisj at rtems.org
Fri Sep 15 21:57:18 UTC 2006
Joel Sherrill wrote:
>
> Does anyone have a suggestion on how to remove the
> warnings in cpukit/httpd?
>
> They are on every target and I would like to
> get rid of them.
>
I assume you are talking about:
../../../../../../rtems-4.6.99.3/c/src/../../cpukit/httpd/emfdb.c: In
function '
dbZero':
../../../../../../rtems-4.6.99.3/c/src/../../cpukit/httpd/emfdb.c:222:
warning:
dereferencing type-punned pointer will break strict-aliasing rules
The code violates the C99 aliasing rules. The simplest workaround is to
add '-fno-strict-aliasing' to the httpd Makefile. I suppose fixing this
in the code would require the use of unions and that is a fair amount of
work.
How safe is the httpd code on a 16bit machine ? For example is the
hAlloc code in h.c ok ? The use of void** and int seems to be mixed.
Regards
Chris
More information about the users
mailing list