head 1.4; access; symbols netbsd-11-0-RC5:1.4 netbsd-11-0-RC4:1.4 netbsd-11-0-RC3:1.4 netbsd-11-0-RC2:1.4 netbsd-11-0-RC1:1.4 perseant-exfatfs-base-20250801:1.4 netbsd-11:1.4.0.4 netbsd-11-base:1.4 netbsd-10-1-RELEASE:1.3 perseant-exfatfs-base-20240630:1.4 perseant-exfatfs:1.4.0.2 perseant-exfatfs-base:1.4 netbsd-8-3-RELEASE:1.2 netbsd-9-4-RELEASE:1.2 netbsd-10-0-RELEASE:1.3 netbsd-10-0-RC6:1.3 netbsd-10-0-RC5:1.3 netbsd-10-0-RC4:1.3 netbsd-10-0-RC3:1.3 netbsd-10-0-RC2:1.3 netbsd-10-0-RC1:1.3 netbsd-10:1.3.0.6 netbsd-10-base:1.3 netbsd-9-3-RELEASE:1.2 cjep_sun2x-base1:1.3 cjep_sun2x:1.3.0.4 cjep_sun2x-base:1.3 cjep_staticlib_x-base1:1.3 netbsd-9-2-RELEASE:1.2 cjep_staticlib_x:1.3.0.2 cjep_staticlib_x-base:1.3 netbsd-9-1-RELEASE:1.2 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 is-mlppp:1.2.0.36 is-mlppp-base:1.2 phil-wifi-20200406:1.2 netbsd-8-2-RELEASE:1.2 netbsd-9-0-RELEASE:1.2 netbsd-9-0-RC2:1.2 netbsd-9-0-RC1:1.2 phil-wifi-20191119:1.2 netbsd-9:1.2.0.34 netbsd-9-base:1.2 phil-wifi-20190609:1.2 netbsd-8-1-RELEASE:1.2 netbsd-8-1-RC1:1.2 pgoyette-compat-merge-20190127:1.2 pgoyette-compat-20190127:1.2 pgoyette-compat-20190118:1.2 pgoyette-compat-1226:1.2 pgoyette-compat-1126:1.2 pgoyette-compat-1020:1.2 pgoyette-compat-0930:1.2 pgoyette-compat-0906:1.2 netbsd-7-2-RELEASE:1.2 pgoyette-compat-0728:1.2 netbsd-8-0-RELEASE:1.2 phil-wifi:1.2.0.32 phil-wifi-base:1.2 pgoyette-compat-0625:1.2 netbsd-8-0-RC2:1.2 pgoyette-compat-0521:1.2 pgoyette-compat-0502:1.2 pgoyette-compat-0422:1.2 netbsd-8-0-RC1:1.2 pgoyette-compat-0415:1.2 pgoyette-compat-0407:1.2 pgoyette-compat-0330:1.2 pgoyette-compat-0322:1.2 pgoyette-compat-0315:1.2 netbsd-7-1-2-RELEASE:1.2 pgoyette-compat:1.2.0.30 pgoyette-compat-base:1.2 netbsd-7-1-1-RELEASE:1.2 matt-nb8-mediatek:1.2.0.28 matt-nb8-mediatek-base:1.2 perseant-stdc-iso10646:1.2.0.26 perseant-stdc-iso10646-base:1.2 netbsd-8:1.2.0.24 netbsd-8-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.22 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 netbsd-7-1:1.2.0.20 netbsd-7-1-RELEASE:1.2 netbsd-7-1-RC2:1.2 netbsd-7-nhusb-base-20170116:1.2 bouyer-socketcan:1.2.0.18 bouyer-socketcan-base:1.2 pgoyette-localcount-20170107:1.2 netbsd-7-1-RC1:1.2 pgoyette-localcount-20161104:1.2 netbsd-7-0-2-RELEASE:1.2 localcount-20160914:1.2 netbsd-7-nhusb:1.2.0.16 netbsd-7-nhusb-base:1.2 pgoyette-localcount-20160806:1.2 pgoyette-localcount-20160726:1.2 pgoyette-localcount:1.2.0.14 pgoyette-localcount-base:1.2 netbsd-7-0-1-RELEASE:1.2 netbsd-7-0:1.2.0.12 netbsd-7-0-RELEASE:1.2 netbsd-7-0-RC3:1.2 netbsd-7-0-RC2:1.2 netbsd-7-0-RC1:1.2 netbsd-6-0-6-RELEASE:1.1 netbsd-6-1-5-RELEASE:1.1 netbsd-7:1.2.0.10 netbsd-7-base:1.2 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.1.2.1 netbsd-6-1-4-RELEASE:1.1 netbsd-6-0-5-RELEASE:1.1 tls-earlyentropy:1.2.0.8 tls-earlyentropy-base:1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 netbsd-6-1-3-RELEASE:1.1 netbsd-6-0-4-RELEASE:1.1 netbsd-6-1-2-RELEASE:1.1 netbsd-6-0-3-RELEASE:1.1 netbsd-6-1-1-RELEASE:1.1 riastradh-drm2-base2:1.2 riastradh-drm2-base1:1.2 riastradh-drm2:1.2.0.4 riastradh-drm2-base:1.2 netbsd-6-1:1.1.0.10 netbsd-6-0-2-RELEASE:1.1 netbsd-6-1-RELEASE:1.1 netbsd-6-1-RC4:1.1 netbsd-6-1-RC3:1.1 agc-symver:1.2.0.6 agc-symver-base:1.2 netbsd-6-1-RC2:1.1 netbsd-6-1-RC1:1.1 yamt-pagecache-base8:1.2 netbsd-6-0-1-RELEASE:1.1 yamt-pagecache-base7:1.2 matt-nb6-plus-nbase:1.1 yamt-pagecache-base6:1.2 netbsd-6-0:1.1.0.8 netbsd-6-0-RELEASE:1.1 netbsd-6-0-RC2:1.1 tls-maxphys:1.2.0.2 tls-maxphys-base:1.2 matt-nb6-plus:1.1.0.6 matt-nb6-plus-base:1.1 netbsd-6-0-RC1:1.1 yamt-pagecache-base5:1.1 yamt-pagecache-base4:1.1 netbsd-6:1.1.0.4 netbsd-6-base:1.1 yamt-pagecache-base3:1.1 yamt-pagecache-base2:1.1 yamt-pagecache:1.1.0.2 yamt-pagecache-base:1.1; locks; strict; comment @# @; 1.4 date 2023.06.03.08.52.55; author lukem; state Exp; branches; next 1.3; commitid JFrjk5m11qFkNtrE; 1.3 date 2020.09.06.07.20.27; author mrg; state Exp; branches; next 1.2; commitid IFqEYW6MZdeXkXmC; 1.2 date 2012.09.05.22.58.53; author riz; state Exp; branches; next 1.1; 1.1 date 2011.06.27.11.52.58; author uch; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2012.10.30.18.59.27; author yamt; state Exp; branches; next ; desc @@ 1.4 log @bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name. @ text @# $NetBSD: Makefile,v 1.3 2020/09/06 07:20:27 mrg Exp $ .include PROG= fsck_v7fs MAN= fsck_v7fs.8 SRCS= fsck_v7fs.c main.c pathname.c inode.c datablock.c freeblock.c \ v7fs_datablock.c v7fs_io.c v7fs_superblock.c v7fs_inode.c v7fs_file.c \ v7fs_dirent.c v7fs_endian.c v7fs_io_user.c v7fs_inode_util.c \ v7fs_file_util.c v7fs_superblock_util.c fsutil.c progress.c FSCK= ${NETBSDSRCDIR}/sbin/fsck V7FS= ${NETBSDSRCDIR}/sys/fs/v7fs CPPFLAGS+= -I${FSCK} -I${V7FS} -DV7FS_EI .PATH: ${FSCK} ${V7FS} LDADD+=-lutil DPADD+=${LIBUTIL} CWARNFLAGS.gcc+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} .include @ 1.3 log @add support for new GCC 9 warnings that may be too much to fix right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2012/09/05 22:58:53 riz Exp $ d20 1 a20 1 CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} @ 1.2 log @Remove "-g" from CPPFLAGS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2011/06/27 11:52:58 uch Exp $ d20 2 @ 1.1 log @7th Edition(V7) File System support. and NetBSD symbolic-link, socket, FIFO extension. see newfs_v7fs(8). @ text @d1 1 a1 1 # $NetBSD$ d14 1 a14 1 CPPFLAGS+= -I${FSCK} -I${V7FS} -DV7FS_EI -g @ 1.1.2.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2011/06/27 11:52:58 uch Exp $ d14 1 a14 1 CPPFLAGS+= -I${FSCK} -I${V7FS} -DV7FS_EI @