[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dmidecode] A lot of compile time warnings on ia64

From: Jean Delvare
Subject: Re: [dmidecode] A lot of compile time warnings on ia64
Date: Sat, 24 Sep 2005 10:31:00 +0200

Hi Petter,

[Petter Reinholdtsen]
> I just had a look at the ia64 build log for dmidecode in Debian.  It
> have lots of compiler warnings.  Most of them are "warning: cast
> increases required alignment of target type".  Are these safe to
> ignore?

I'd say they aren't. However, I am a bit surprised because this code
hasn't changed in years, so you should have seen these problems before.

These warnings suggest that you should use -DALIGNMENT_WORKAROUND. This
is unheard of for ia64 though. If this is true, you'll know soon
enough, as your ia64 dmidecode binary will die horribly with a bus
error. If this is the case and -DALIGNMENT_WORKAROUND fixes it, please
let me know so that I can document it and even possibly automatize the
use of ALIGNMENT_WORKAROUND on this architecure.

> The build log is available from
> <URL:>

I see that you are using non-standard compilation flags: -ansi,
-pendantic and -Os. Might be related to the warnings, so you should try
without these. I see no point in adding -ansi and -pedantic, BTW, as I
am not willing to fix warnings caused by these.

The warning about 'strcasecmp' is correct, I was not including the
correct header file. I was including <string.h> instead of <strings.h>.
I had never realized these were two different header files. For some
reason it didn't cause a warning for me. I'll fix it in CVS today,
thanks for pointing this out.

Jean Delvare

reply via email to

[Prev in Thread] Current Thread [Next in Thread]