Re: recent current kernel compile failure

From: Scott Long <scottl_at_samsco.org>
Date: Thu, 27 Jan 2005 04:49:35 -0700
Divacky Roman wrote:

> hi
> 
> recent current with CFLAGS=-O2:
> 
> ../dev/amr/amr_pci.c
> /usr/src/sys/modules/amr/../../dev/amr/amr_pci.c: In function `amr_setup_mbox':
> /usr/src/sys/modules/amr/../../dev/amr/amr_pci.c:605: warning: dereferencing
> type-punned pointer will break strict-aliasing rules
> 
> would be nice to have this repaired
> 
> roman

We don't support compiling with -fstrict-aliasing.  The correct solution 
is likely to change the type of 'p' and add a bunch of casts.  Not very 
pretty, but I guess no worse than the horribly non-informative gcc 
message that is generated here.

Scott
Received on Thu Jan 27 2005 - 10:49:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC