httpd warning question

Chris Johns chrisj at
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- In 
function '
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 

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.


More information about the users mailing list