Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand It just so happens we don't need -Wno-at...



details:   https://anonhg.NetBSD.org/src/rev/3fdd3da08824
branches:  trunk
changeset: 759985:3fdd3da08824
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Dec 22 20:46:42 2010 +0000

description:
It just so happens we don't need -Wno-attributes if we
place __packed in the right place.

diffstat:

 sys/arch/i386/stand/Makefile.booters |  7 ++-----
 sys/arch/i386/stand/pxeboot/pxe.h    |  6 +++---
 2 files changed, 5 insertions(+), 8 deletions(-)

diffs (50 lines):

diff -r df263d9c0e95 -r 3fdd3da08824 sys/arch/i386/stand/Makefile.booters
--- a/sys/arch/i386/stand/Makefile.booters      Wed Dec 22 20:17:50 2010 +0000
+++ b/sys/arch/i386/stand/Makefile.booters      Wed Dec 22 20:46:42 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.booters,v 1.80 2010/07/06 06:00:00 mrg Exp $
+#      $NetBSD: Makefile.booters,v 1.81 2010/12/22 20:46:42 jakllsch Exp $
 
 .include <bsd.own.mk>
 
@@ -15,14 +15,11 @@
 .if defined(HAVE_GCC)
 .if ${MACHINE_ARCH} == "x86_64"
 CPUFLAGS= -m32
-.if ${HAVE_GCC} != 3
-CPUFLAGS+= -Wno-attributes
-.endif
 .else
 .if ${HAVE_GCC} == 3
 CPUFLAGS=  -mcpu=i386
 .else
-CPUFLAGS=  -march=i386 -mtune=i386 -Wno-attributes
+CPUFLAGS=  -march=i386 -mtune=i386
 .endif
 .endif
 .endif
diff -r df263d9c0e95 -r 3fdd3da08824 sys/arch/i386/stand/pxeboot/pxe.h
--- a/sys/arch/i386/stand/pxeboot/pxe.h Wed Dec 22 20:17:50 2010 +0000
+++ b/sys/arch/i386/stand/pxeboot/pxe.h Wed Dec 22 20:46:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pxe.h,v 1.5 2007/12/25 18:33:34 perry Exp $    */
+/*     $NetBSD: pxe.h,v 1.6 2010/12/22 20:46:42 jakllsch Exp $ */
 
 /*
  * Copyright (c) 2000 Alfred Perlstein <alfred%freebsd.org@localhost>
@@ -49,13 +49,13 @@
 typedef struct {
        uint16_t                offset;
        uint16_t                segment;
-} SEGOFF16_t __packed;
+} __packed SEGOFF16_t;
 
 typedef struct {
        uint16_t                Seg_Addr;
        uint32_t                Phy_Addr;
        uint16_t                Seg_Size;
-} SEGDESC_t __packed;
+} __packed SEGDESC_t;
 
 typedef        uint16_t                SEGSEL_t;
 typedef        uint16_t                PXENV_STATUS_t;



Home | Main Index | Thread Index | Old Index