head 1.45; access; symbols netbsd-11-0-RC6:1.45 netbsd-11-0-RC5:1.45 netbsd-11-0-RC4:1.45 netbsd-11-0-RC3:1.45 netbsd-11-0-RC2:1.45 netbsd-11-0-RC1:1.45 perseant-exfatfs-base-20250801:1.45 netbsd-11:1.45.0.2 netbsd-11-base:1.45 netbsd-10-1-RELEASE:1.43 perseant-exfatfs-base-20240630:1.44 perseant-exfatfs:1.44.0.2 perseant-exfatfs-base:1.44 netbsd-8-3-RELEASE:1.42 netbsd-9-4-RELEASE:1.42 netbsd-10-0-RELEASE:1.43 netbsd-10-0-RC6:1.43 netbsd-10-0-RC5:1.43 netbsd-10-0-RC4:1.43 netbsd-10-0-RC3:1.43 netbsd-10-0-RC2:1.43 netbsd-10-0-RC1:1.43 netbsd-10:1.43.0.8 netbsd-10-base:1.43 netbsd-9-3-RELEASE:1.42 cjep_sun2x-base1:1.43 cjep_sun2x:1.43.0.6 cjep_sun2x-base:1.43 cjep_staticlib_x-base1:1.43 netbsd-9-2-RELEASE:1.42 cjep_staticlib_x:1.43.0.4 cjep_staticlib_x-base:1.43 netbsd-9-1-RELEASE:1.42 phil-wifi-20200421:1.43 phil-wifi-20200411:1.43 is-mlppp:1.43.0.2 is-mlppp-base:1.43 phil-wifi-20200406:1.43 netbsd-8-2-RELEASE:1.42 netbsd-9-0-RELEASE:1.42 netbsd-9-0-RC2:1.42 netbsd-9-0-RC1:1.42 phil-wifi-20191119:1.43 netbsd-9:1.42.0.34 netbsd-9-base:1.42 phil-wifi-20190609:1.42 netbsd-8-1-RELEASE:1.42 netbsd-8-1-RC1:1.42 pgoyette-compat-merge-20190127:1.42 pgoyette-compat-20190127:1.42 pgoyette-compat-20190118:1.42 pgoyette-compat-1226:1.42 pgoyette-compat-1126:1.42 pgoyette-compat-1020:1.42 pgoyette-compat-0930:1.42 pgoyette-compat-0906:1.42 netbsd-7-2-RELEASE:1.42 pgoyette-compat-0728:1.42 netbsd-8-0-RELEASE:1.42 phil-wifi:1.42.0.32 phil-wifi-base:1.42 pgoyette-compat-0625:1.42 netbsd-8-0-RC2:1.42 pgoyette-compat-0521:1.42 pgoyette-compat-0502:1.42 pgoyette-compat-0422:1.42 netbsd-8-0-RC1:1.42 pgoyette-compat-0415:1.42 pgoyette-compat-0407:1.42 pgoyette-compat-0330:1.42 pgoyette-compat-0322:1.42 pgoyette-compat-0315:1.42 netbsd-7-1-2-RELEASE:1.42 pgoyette-compat:1.42.0.30 pgoyette-compat-base:1.42 netbsd-7-1-1-RELEASE:1.42 matt-nb8-mediatek:1.42.0.28 matt-nb8-mediatek-base:1.42 perseant-stdc-iso10646:1.42.0.26 perseant-stdc-iso10646-base:1.42 netbsd-8:1.42.0.24 netbsd-8-base:1.42 prg-localcount2-base3:1.42 prg-localcount2-base2:1.42 prg-localcount2-base1:1.42 prg-localcount2:1.42.0.22 prg-localcount2-base:1.42 pgoyette-localcount-20170426:1.42 bouyer-socketcan-base1:1.42 pgoyette-localcount-20170320:1.42 netbsd-7-1:1.42.0.20 netbsd-7-1-RELEASE:1.42 netbsd-7-1-RC2:1.42 netbsd-7-nhusb-base-20170116:1.42 bouyer-socketcan:1.42.0.18 bouyer-socketcan-base:1.42 pgoyette-localcount-20170107:1.42 netbsd-7-1-RC1:1.42 pgoyette-localcount-20161104:1.42 netbsd-7-0-2-RELEASE:1.42 localcount-20160914:1.42 netbsd-7-nhusb:1.42.0.16 netbsd-7-nhusb-base:1.42 pgoyette-localcount-20160806:1.42 pgoyette-localcount-20160726:1.42 pgoyette-localcount:1.42.0.14 pgoyette-localcount-base:1.42 netbsd-7-0-1-RELEASE:1.42 netbsd-7-0:1.42.0.12 netbsd-7-0-RELEASE:1.42 netbsd-7-0-RC3:1.42 netbsd-7-0-RC2:1.42 netbsd-7-0-RC1:1.42 netbsd-5-2-3-RELEASE:1.38 netbsd-5-1-5-RELEASE:1.38 netbsd-6-0-6-RELEASE:1.41.8.1 netbsd-6-1-5-RELEASE:1.41.8.1 netbsd-7:1.42.0.10 netbsd-7-base:1.42 yamt-pagecache-base9:1.42 yamt-pagecache-tag8:1.41.6.1 netbsd-6-1-4-RELEASE:1.41.8.1 netbsd-6-0-5-RELEASE:1.41.8.1 tls-earlyentropy:1.42.0.8 tls-earlyentropy-base:1.42 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.42 riastradh-drm2-base3:1.42 netbsd-6-1-3-RELEASE:1.41.8.1 netbsd-6-0-4-RELEASE:1.41.8.1 netbsd-5-2-2-RELEASE:1.38 netbsd-5-1-4-RELEASE:1.38 netbsd-6-1-2-RELEASE:1.41.8.1 netbsd-6-0-3-RELEASE:1.41.8.1 netbsd-5-2-1-RELEASE:1.38 netbsd-5-1-3-RELEASE:1.38 netbsd-6-1-1-RELEASE:1.41.8.1 riastradh-drm2-base2:1.42 riastradh-drm2-base1:1.42 riastradh-drm2:1.42.0.4 riastradh-drm2-base:1.42 netbsd-6-1:1.41.8.1.0.6 netbsd-6-0-2-RELEASE:1.41.8.1 netbsd-6-1-RELEASE:1.41.8.1 netbsd-6-1-RC4:1.41.8.1 netbsd-6-1-RC3:1.41.8.1 agc-symver:1.42.0.6 agc-symver-base:1.42 netbsd-6-1-RC2:1.41.8.1 netbsd-6-1-RC1:1.41.8.1 yamt-pagecache-base8:1.42 netbsd-5-2:1.38.0.26 netbsd-6-0-1-RELEASE:1.41.8.1 yamt-pagecache-base7:1.42 netbsd-5-2-RELEASE:1.38 netbsd-5-2-RC1:1.38 matt-nb6-plus-nbase:1.41.8.1 yamt-pagecache-base6:1.42 netbsd-6-0:1.41.8.1.0.4 netbsd-6-0-RELEASE:1.41.8.1 netbsd-6-0-RC2:1.41.8.1 tls-maxphys:1.42.0.2 tls-maxphys-base:1.42 matt-nb6-plus:1.41.8.1.0.2 matt-nb6-plus-base:1.41.8.1 netbsd-6-0-RC1:1.41.8.1 yamt-pagecache-base5:1.42 yamt-pagecache-base4:1.41 netbsd-6:1.41.0.8 netbsd-6-base:1.41 netbsd-5-1-2-RELEASE:1.38 netbsd-5-1-1-RELEASE:1.38 yamt-pagecache-base3:1.41 yamt-pagecache-base2:1.41 yamt-pagecache:1.41.0.6 yamt-pagecache-base:1.41 cherry-xenmp:1.41.0.4 cherry-xenmp-base:1.41 bouyer-quota2-nbase:1.41 bouyer-quota2:1.41.0.2 bouyer-quota2-base:1.41 matt-mips64-premerge-20101231:1.41 matt-nb5-mips64-premerge-20101231:1.38 matt-nb5-pq3:1.38.0.24 matt-nb5-pq3-base:1.38 netbsd-5-1:1.38.0.22 netbsd-5-1-RELEASE:1.38 netbsd-5-1-RC4:1.38 matt-nb5-mips64-k15:1.38 netbsd-5-1-RC3:1.38 netbsd-5-1-RC2:1.38 netbsd-5-1-RC1:1.38 netbsd-5-0-2-RELEASE:1.38 matt-nb5-mips64-premerge-20091211:1.38 matt-premerge-20091211:1.41 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.38 matt-nb4-mips64-k7-u2a-k9b:1.38 matt-nb5-mips64-u1-k1-k5:1.38 matt-nb5-mips64:1.38.0.20 netbsd-5-0-1-RELEASE:1.38 jym-xensuspend-nbase:1.39 netbsd-5-0:1.38.0.18 netbsd-5-0-RELEASE:1.38 netbsd-5-0-RC4:1.38 netbsd-5-0-RC3:1.38 netbsd-5-0-RC2:1.38 jym-xensuspend:1.38.0.16 jym-xensuspend-base:1.39 netbsd-5-0-RC1:1.38 netbsd-5:1.38.0.14 netbsd-5-base:1.38 matt-mips64-base2:1.38 matt-mips64:1.37.0.6 netbsd-4-0-1-RELEASE:1.36 wrstuden-revivesa-base-3:1.38 wrstuden-revivesa-base-2:1.38 wrstuden-fixsa-newbase:1.36 wrstuden-revivesa-base-1:1.38 yamt-pf42-base4:1.38 yamt-pf42-base3:1.38 hpcarm-cleanup-nbase:1.38 yamt-pf42-baseX:1.38 yamt-pf42-base2:1.38 wrstuden-revivesa:1.38.0.12 wrstuden-revivesa-base:1.38 yamt-pf42:1.38.0.10 yamt-pf42-base:1.38 mjf-devfs2:1.38.0.8 mjf-devfs2-base:1.38 keiichi-mipv6:1.38.0.6 keiichi-mipv6-base:1.38 matt-armv6-nbase:1.38 matt-armv6-prevmlocking:1.37 wrstuden-fixsa-base-1:1.36 netbsd-4-0:1.36.0.8 netbsd-4-0-RELEASE:1.36 cube-autoconf:1.38.0.4 cube-autoconf-base:1.38 mjf-devfs:1.38.0.2 mjf-devfs-base:1.38 netbsd-4-0-RC5:1.36 netbsd-4-0-RC4:1.36 netbsd-4-0-RC3:1.36 netbsd-4-0-RC2:1.36 netbsd-4-0-RC1:1.36 matt-armv6:1.37.0.4 matt-armv6-base:1.38 matt-mips64-base:1.37 hpcarm-cleanup:1.37.0.2 hpcarm-cleanup-base:1.38 netbsd-3-1-1-RELEASE:1.31 netbsd-3-0-3-RELEASE:1.31 wrstuden-fixsa:1.36.0.6 wrstuden-fixsa-base:1.36 abandoned-netbsd-4-base:1.36 abandoned-netbsd-4:1.36.0.2 netbsd-3-1:1.31.0.6 netbsd-3-1-RELEASE:1.31 netbsd-3-0-2-RELEASE:1.31 netbsd-3-1-RC4:1.31 netbsd-3-1-RC3:1.31 netbsd-3-1-RC2:1.31 netbsd-3-1-RC1:1.31 netbsd-4:1.36.0.4 netbsd-4-base:1.36 netbsd-3-0-1-RELEASE:1.31 netbsd-3-0:1.31.0.4 netbsd-3-0-RELEASE:1.31 netbsd-3-0-RC6:1.31 netbsd-3-0-RC5:1.31 netbsd-3-0-RC4:1.31 netbsd-3-0-RC3:1.31 netbsd-3-0-RC2:1.31 netbsd-3-0-RC1:1.31 netbsd-2-0-3-RELEASE:1.28 netbsd-2-1:1.28.0.6 netbsd-2-1-RELEASE:1.28 netbsd-2-1-RC6:1.28 netbsd-2-1-RC5:1.28 netbsd-2-1-RC4:1.28 netbsd-2-1-RC3:1.28 netbsd-2-1-RC2:1.28 netbsd-2-1-RC1:1.28 netbsd-2-0-2-RELEASE:1.28 netbsd-3:1.31.0.2 netbsd-3-base:1.31 netbsd-2-0-1-RELEASE:1.28 netbsd-2:1.28.0.4 netbsd-2-base:1.28 netbsd-2-0-RELEASE:1.28 netbsd-2-0-RC5:1.28 netbsd-2-0-RC4:1.28 netbsd-2-0-RC3:1.28 netbsd-2-0-RC2:1.28 netbsd-2-0-RC1:1.28 netbsd-2-0:1.28.0.2 netbsd-2-0-base:1.28 netbsd-1-6-PATCH002-RELEASE:1.23 netbsd-1-6-PATCH002:1.23 netbsd-1-6-PATCH002-RC4:1.23 netbsd-1-6-PATCH002-RC3:1.23 netbsd-1-6-PATCH002-RC2:1.23 netbsd-1-6-PATCH002-RC1:1.23 netbsd-1-6-PATCH001:1.23 netbsd-1-6-PATCH001-RELEASE:1.23 netbsd-1-6-PATCH001-RC3:1.23 netbsd-1-6-PATCH001-RC2:1.23 netbsd-1-6-PATCH001-RC1:1.23 fvdl_fs64_base:1.26 netbsd-1-6-RELEASE:1.23 netbsd-1-6-RC3:1.23 netbsd-1-6-RC2:1.23 netbsd-1-6-RC1:1.23 netbsd-1-6:1.23.0.2 netbsd-1-6-base:1.23 netbsd-1-5-PATCH003:1.19 netbsd-1-5-PATCH002:1.19 netbsd-1-5-PATCH001:1.19 netbsd-1-5-RELEASE:1.19 netbsd-1-5-BETA2:1.19 netbsd-1-5-BETA:1.19 netbsd-1-4-PATCH003:1.10.2.2 netbsd-1-5-ALPHA2:1.19 netbsd-1-5:1.19.0.4 netbsd-1-5-base:1.19 minoura-xpg4dl:1.19.0.2 minoura-xpg4dl-base:1.19 netbsd-1-4-PATCH002:1.10.2.2 wrstuden-devbsize-19991221:1.16 wrstuden-devbsize:1.13.0.2 wrstuden-devbsize-base:1.16 comdex-fall-1999:1.16.0.2 comdex-fall-1999-base:1.16 netbsd-1-4-PATCH001:1.10.2.2 netbsd-1-4-RELEASE:1.10.2.2 netbsd-1-4:1.10.0.2 netbsd-1-4-base:1.10 netbsd-1-3-PATCH003:1.9 netbsd-1-3-PATCH003-CANDIDATE2:1.9 netbsd-1-3-PATCH003-CANDIDATE1:1.9 netbsd-1-3-PATCH003-CANDIDATE0:1.9 netbsd-1-3-PATCH002:1.9 netbsd-1-3-PATCH001:1.9 netbsd-1-3-RELEASE:1.9 netbsd-1-3-BETA:1.9 netbsd-1-3:1.9.0.2 netbsd-1-3-base:1.9 netbsd-1-2-PATCH001:1.4 netbsd-1-2-RELEASE:1.4 netbsd-1-2-BETA:1.4 netbsd-1-2:1.4.0.6 netbsd-1-2-base:1.4 netbsd-1-1-PATCH001:1.4 netbsd-1-1-RELEASE:1.4 netbsd-1-1:1.4.0.2 netbsd-1-1-base:1.4 netbsd-1-0-PATCH06:1.2 netbsd-1-0-PATCH05:1.2 netbsd-1-0-PATCH04:1.2 netbsd-1-0-PATCH03:1.2 netbsd-1-0-PATCH02:1.2 netbsd-1-0-PATCH1:1.2 netbsd-1-0-PATCH0:1.2 netbsd-1-0-RELEASE:1.2 netbsd-1-0:1.2.0.2 netbsd-1-0-base:1.2 netbsd-0-9-RELEASE:1.1 netbsd-0-9-BETA:1.1 netbsd-0-9-ALPHA2:1.1 netbsd-0-9-ALPHA:1.1 netbsd-0-9:1.1.0.2 netbsd-0-9-base:1.1 netbsd-0-8:1.1 netbsd-alpha-1:1.1; locks; strict; comment @# @; 1.45 date 2025.01.03.16.16.14; author rillig; state Exp; branches; next 1.44; commitid hpQvL5HzgxamB3EF; 1.44 date 2023.06.03.09.09.12; author lukem; state Exp; branches 1.44.2.1; next 1.43; commitid aBaIRnuykonRStrE; 1.43 date 2019.10.13.07.28.12; author mrg; state Exp; branches; next 1.42; commitid vRNwN94v7NgB2GGB; 1.42 date 2012.05.05.16.03.55; author tsutsui; state Exp; branches 1.42.32.1; next 1.41; 1.41 date 2009.11.27.15.37.32; author tsutsui; state Exp; branches 1.41.6.1 1.41.8.1; next 1.40; 1.40 date 2009.06.01.19.57.33; author christos; state Exp; branches; next 1.39; 1.39 date 2009.04.06.12.19.16; author lukem; state Exp; branches; next 1.38; 1.38 date 2007.11.29.23.19.25; author dsl; state Exp; branches 1.38.2.1 1.38.16.1; next 1.37; 1.37 date 2007.03.10.18.22.04; author apb; state Exp; branches 1.37.4.1; next 1.36; 1.36 date 2006.05.12.01.18.25; author mrg; state Exp; branches; next 1.35; 1.35 date 2006.05.11.23.16.29; author mrg; state Exp; branches; next 1.34; 1.34 date 2005.06.23.00.54.47; author fvdl; state Exp; branches; next 1.33; 1.33 date 2005.06.12.19.14.10; author dyoung; state Exp; branches; next 1.32; 1.32 date 2005.05.22.03.45.30; author lukem; state Exp; branches; next 1.31; 1.31 date 2005.01.20.16.39.23; author xtraeme; state Exp; branches; next 1.30; 1.30 date 2005.01.20.16.01.02; author xtraeme; state Exp; branches; next 1.29; 1.29 date 2004.10.13.23.28.35; author gavan; state Exp; branches; next 1.28; 1.28 date 2003.04.30.19.49.01; author dsl; state Exp; branches; next 1.27; 1.27 date 2003.04.26.19.10.09; author fvdl; state Exp; branches; next 1.26; 1.26 date 2002.11.23.23.45.51; author fvdl; state Exp; branches; next 1.25; 1.25 date 2002.07.26.17.22.51; author manu; state Exp; branches; next 1.24; 1.24 date 2002.06.17.15.11.46; author itojun; state Exp; branches; next 1.23; 1.23 date 2002.05.09.18.16.16; author uch; state Exp; branches; next 1.22; 1.22 date 2002.04.03.03.17.36; author thorpej; state Exp; branches; next 1.21; 1.21 date 2002.02.27.22.31.18; author scw; state Exp; branches; next 1.20; 1.20 date 2001.10.15.16.22.53; author uch; state Exp; branches; next 1.19; 1.19 date 2000.05.02.18.20.41; author nonaka; state Exp; branches; next 1.18; 1.18 date 2000.03.19.23.01.07; author soren; state Exp; branches; next 1.17; 1.17 date 2000.01.31.15.54.48; author soda; state Exp; branches; next 1.16; 1.16 date 99.09.25.04.27.55; author enami; state Exp; branches; next 1.15; 1.15 date 99.09.25.04.26.28; author enami; state Exp; branches; next 1.14; 1.14 date 99.09.25.04.18.20; author enami; state Exp; branches; next 1.13; 1.13 date 99.07.02.17.48.26; author sakamoto; state Exp; branches 1.13.2.1; next 1.12; 1.12 date 99.05.02.04.42.47; author ross; state Exp; branches; next 1.11; 1.11 date 99.04.15.22.31.23; author fvdl; state Exp; branches; next 1.10; 1.10 date 98.10.15.15.23.23; author ws; state Exp; branches 1.10.2.1; next 1.9; 1.9 date 97.09.25.05.08.28; author lukem; state Exp; branches; next 1.8; 1.8 date 97.09.15.12.45.51; author lukem; state Exp; branches; next 1.7; 1.7 date 97.09.14.13.52.26; author lukem; state Exp; branches; next 1.6; 1.6 date 97.09.05.21.26.57; author phil; state Exp; branches; next 1.5; 1.5 date 97.06.23.04.23.50; author mrg; state Exp; branches; next 1.4; 1.4 date 95.03.18.14.55.33; author cgd; state Exp; branches; next 1.3; 1.3 date 94.12.22.10.44.38; author cgd; state Exp; branches; next 1.2; 1.2 date 93.08.01.05.37.54; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.04.09.19.23.56; author cgd; state Exp; branches; next ; 1.44.2.1 date 2025.08.02.05.55.05; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; 1.42.32.1 date 2020.04.13.08.03.19; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.41.6.1 date 2012.05.23.10.07.34; author yamt; state Exp; branches; next ; 1.41.8.1 date 2012.06.12.19.11.50; author riz; state Exp; branches; next ; 1.38.2.1 date 2007.11.29.23.19.25; author dsl; state dead; branches; next 1.38.2.2; 1.38.2.2 date 2007.11.29.23.19.26; author dsl; state Exp; branches; next ; 1.38.16.1 date 2009.05.13.19.19.00; author jym; state Exp; branches; next ; 1.37.4.1 date 2008.01.09.01.38.03; author matt; state Exp; branches; next ; 1.13.2.1 date 99.12.27.18.30.23; author wrstuden; state Exp; branches; next ; 1.10.2.1 date 99.04.18.00.18.49; author fvdl; state Exp; branches; next 1.10.2.2; 1.10.2.2 date 99.05.02.21.25.05; author perry; state Exp; branches; next ; desc @@ 1.45 log @fdisk: remove unreachable options 'T' and 't', fix lint warnings @ text @# $NetBSD: Makefile,v 1.44 2023/06/03 09:09:12 lukem Exp $ PROG= fdisk SRCS= fdisk.c MAN= fdisk.8 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" CPPFLAGS+= -DBOOTSEL .if ${HOSTPROG:U} == "" CPPFLAGS+= -DUSE_DISKLIST .endif .endif .if ${MACHINE} == "arc" CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"' .endif .if ${MACHINE} == "netwinder" CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"' .endif COPTS.fdisk.c+= ${CC_WNO_STRINGOP_TRUNCATION} LINTFLAGS+= -X 117 # '>>' on signed value LINTFLAGS+= -X 132 # conversion may lose accuracy LINTFLAGS+= -X 298 # conversion in function call may lose accuracy .include .if ${HOSTPROG:U} == "" DPADD+= ${LIBUTIL} ${LIBZ} LDADD+= -lutil -lz .endif @ 1.44 log @bsd.own.mk: rename GCC_NO_* to CC_WNO_* Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 2019/10/13 07:28:12 mrg Exp $ d3 1 a3 1 PROG= fdisk d10 1 a10 1 .if (${HOSTPROG:U} == "") d24 3 d30 1 a30 1 .if (${HOSTPROG:U} == "") @ 1.44.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.45 2025/01/03 16:16:14 rillig Exp $ d3 1 a3 1 PROG= fdisk d10 1 a10 1 .if ${HOSTPROG:U} == "" a23 3 LINTFLAGS+= -X 117 # '>>' on signed value LINTFLAGS+= -X 132 # conversion may lose accuracy LINTFLAGS+= -X 298 # conversion in function call may lose accuracy d27 1 a27 1 .if ${HOSTPROG:U} == "" @ 1.43 log @introduce some common variables for use in GCC warning disables: GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong." @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42 2012/05/05 16:03:55 tsutsui Exp $ d23 1 a23 1 COPTS.fdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION} @ 1.42 log @Don't use "#if defined(__i386__) || defined(__x86_64__)" conditionals in C source file to define option features. Define proper options in each Makefile per ${MACHINE_ARCH} variable instead. Previously if a host is x86 and it has /usr/mdec/mbr file in its system, tools fdisk implicitly installs it as mbr bootcode even for !x86 targets. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.41 2009/11/27 15:37:32 tsutsui Exp $ d23 2 @ 1.42.32.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ a22 2 COPTS.fdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION} @ 1.41 log @Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD. It just fakes MBR partition map which contains 1MB FAT16B partition and ~1GB OpenBSD partition, and we can always create necessary MBR partitions for OpenFirmware by the fdisk(8) command itself. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.40 2009/06/01 19:57:33 christos Exp $ d8 7 @ 1.41.8.1 log @Pull up following revision(s) (requested by tsutsui in ticket #315): sbin/fdisk/fdisk.c: revision 1.141 sbin/fdisk/fdisk.c: revision 1.142 tools/fdisk/Makefile: revision 1.5 tools/fdisk/Makefile: revision 1.7 sbin/fdisk/Makefile: revision 1.42 Don't use "#if defined(__i386__) || defined(__x86_64__)" conditionals in C source file to define option features. Define proper options in each Makefile per ${MACHINE_ARCH} variable instead. Previously if a host is x86 and it has /usr/mdec/mbr file in its system, tools fdisk implicitly installs it as mbr bootcode even for !x86 targets. Use ${DESTDIR}/usr/mdec for DEFAULT_BOOTDIR on tools fdisk(8) rather than unknown build host's /usr/mdec directory. XXX: no option to leave MBR bootcode empty on x86 targets @ text @d1 1 a1 1 # $NetBSD$ a7 7 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" CPPFLAGS+= -DBOOTSEL .if (${HOSTPROG:U} == "") CPPFLAGS+= -DUSE_DISKLIST .endif .endif @ 1.41.6.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.41 2009/11/27 15:37:32 tsutsui Exp $ a7 7 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" CPPFLAGS+= -DBOOTSEL .if (${HOSTPROG:U} == "") CPPFLAGS+= -DUSE_DISKLIST .endif .endif @ 1.40 log @Delete GPT partitions if we overwrite with MBR to avoid confusion with disks that have both MBR and a secondary left over GPT partition signature. From Mike M. Volokhov @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 2009/04/06 12:19:16 lukem Exp $ a18 1 SUBDIR= mbr a20 1 .include @ 1.39 log @remove mispelt WARNS. (it will be set in ../Makefile.inc "soon") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.38 2007/11/29 23:19:25 dsl Exp $ d20 2 a21 2 DPADD+= ${LIBUTIL} LDADD+= -lutil @ 1.38 log @Make this compile without -Wno-pointer-sign (Needs updated bootblock.h) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.37 2007/03/10 18:22:04 apb Exp $ a2 1 WARS= 4 @ 1.38.2.1 log @file Makefile was added on branch mjf-devfs on 2007-11-29 23:19:26 +0000 @ text @d1 24 @ 1.38.2.2 log @Make this compile without -Wno-pointer-sign (Needs updated bootblock.h) @ text @a0 24 # $NetBSD: Makefile,v 1.38 2007/11/29 23:19:25 dsl Exp $ WARS= 4 PROG= fdisk SRCS= fdisk.c MAN= fdisk.8 .if ${MACHINE} == "arc" CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"' .endif .if ${MACHINE} == "netwinder" CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"' .endif .include .if (${HOSTPROG:U} == "") SUBDIR= mbr DPADD+= ${LIBUTIL} LDADD+= -lutil .include .endif @ 1.38.16.1 log @Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 2009/04/06 12:19:16 lukem Exp $ d3 1 @ 1.37 log @WARNS= 4 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 2006/05/12 01:18:25 mrg Exp $ a24 6 .if !defined(HOSTPROGNAME) .if ${HAVE_GCC} == 4 COPTS.fdisk.c+= -Wno-pointer-sign .endif .endif @ 1.37.4.1 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD$ d25 6 @ 1.36 log @don't do the -Wno-pointer-sign dance for host programs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2006/05/11 23:16:29 mrg Exp $ d3 1 @ 1.35 log @sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2005/06/23 00:54:47 fvdl Exp $ d25 1 d29 1 @ 1.34 log @If HOSTPROG is empty, do not pull in libutil, since we do not need it in that case, and several host platforms do not have libutil. Fixes the build of these programs as host tools on platforms without libutil. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2005/06/12 19:14:10 dyoung Exp $ d17 1 d24 4 @ 1.33 log @Turn fdisk(8) into a host tool. Still todo: commit the host-tool build infrastructure to src/tools/fdisk/. @ text @d1 1 a1 5 # $NetBSD: Makefile,v 1.32 2005/05/22 03:45:30 lukem Exp $ .if (${HOSTPROG:U} == "") SUBDIR= mbr .endif a4 2 DPADD+= ${LIBUTIL} LDADD+= -lutil d18 3 @ 1.32 log @Make fdisk(8) available on all platforms, since MS-DOS partitioning is the de-facto standard for many removable media types. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2005/01/20 16:39:23 xtraeme Exp $ d3 1 d5 1 d23 1 d25 1 @ 1.31 log @WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2005/01/20 16:01:02 xtraeme Exp $ a4 15 .if (${MACHINE} == "i386" || \ ${MACHINE} == "bebox" || \ ${MACHINE} == "cobalt" || \ ${MACHINE} == "ofppc" || \ ${MACHINE} == "hpcarm" || \ ${MACHINE} == "hpcmips" || \ ${MACHINE} == "hpcsh" || \ ${MACHINE} == "iyonix" || \ ${MACHINE} == "arc" || \ ${MACHINE} == "prep" || \ ${MACHINE} == "playstation2" || \ ${MACHINE} == "mvmeppc" || \ ${MACHINE} == "netwinder" || \ ${MACHINE} == "macppc" || \ ${MACHINE} == "amd64") a8 1 .endif @ 1.30 log @Remove main() prototype; WARNS=2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2004/10/13 23:28:35 gavan Exp $ a4 2 WARNS= 2 @ 1.29 log @Initial import of iyonix port. The Iyonix is a desktop machine from Castle Technology, based on a 600MHz XScale[tm] 80321 processor. * Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible. * Currently boots multiuser with a serial console. * Device support is not yet complete. With help from abs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2003/04/30 19:49:01 dsl Exp $ d5 2 @ 1.28 log @Don't descend into mbr_bootsel. i386/and64 mbr code is built in arch i386/stand/mbr @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2003/04/26 19:10:09 fvdl Exp $ d12 1 @ 1.27 log @x86_64 -> amd64 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2002/11/23 23:45:51 fvdl Exp $ a3 3 .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" SUBDIR+= mbr_bootsel .endif @ 1.26 log @Compile mbr and mbr_bootsel on x86_64 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2002/07/26 17:22:51 manu Exp $ d4 1 a4 1 .if ${MACHINE} == "i386" || ${MACHINE} == "x86_64" d21 1 a21 1 ${MACHINE} == "x86_64") @ 1.25 log @Added fdisk on hpcarm @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2002/06/17 15:11:46 itojun Exp $ d4 1 a4 1 .if ${MACHINE} == "i386" d20 2 a21 1 ${MACHINE} == "macppc") @ 1.24 log @fdisk is now useful for macppc, build it @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2002/05/09 18:16:16 uch Exp $ d12 1 @ 1.23 log @add hpcsh @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2002/04/03 03:17:36 thorpej Exp $ d18 2 a19 1 ${MACHINE} == "netwinder") @ 1.22 log @Build fdisk(8) on netwinder. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2002/02/27 22:31:18 scw Exp $ d13 1 @ 1.21 log @fdisk(8) is needed on mvmeppc since PPCBUG uses PeeCee-style MBR partition info when booting from disk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2001/10/15 16:22:53 uch Exp $ d8 10 a17 4 .if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || ${MACHINE} == "cobalt" ||\ ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips" || ${MACHINE} == "arc" ||\ ${MACHINE} == "prep" || ${MACHINE} == "playstation2" ||\ ${MACHINE} == "mvmeppc") d28 4 @ 1.20 log @playstation2 support @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2000/05/02 18:20:41 nonaka Exp $ d10 2 a11 1 ${MACHINE} == "prep" || ${MACHINE} == "playstation2") @ 1.19 log @also install on prep. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2000/03/19 23:01:07 soren Exp $ d10 1 a10 1 ${MACHINE} == "prep") @ 1.18 log @Also install on cobalt. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2000/01/31 15:54:48 soda Exp $ d9 2 a10 1 ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips" || ${MACHINE} == "arc") @ 1.17 log @Build fdisk also on arc @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 1999/09/25 04:27:55 enami Exp $ d8 1 a8 1 .if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || \ @ 1.16 log @Oops, needs an operator. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 1999/09/25 04:26:28 enami Exp $ d9 1 a9 1 ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips") d17 4 @ 1.15 log @Build fdisk also on hpcmips. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 1999/09/25 04:18:20 enami Exp $ d8 2 a9 2 .if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc" \ ${MACHINE} == "hpcmips") @ 1.14 log @Don't decend into the subdirectory mbr_bootsel except i386, since it currently doesn't contain MI thing and not compile on ofppc box (thanks Wolfgang) and probably on bebox box. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 1999/07/02 17:48:26 sakamoto Exp $ d8 2 a9 1 .if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc") @ 1.13 log @Build fdisk on bebox and ofppc(replaced powerpc). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 1999/05/02 04:42:47 ross Exp $ d4 3 a12 1 SUBDIR+= mbr_bootsel a13 1 @ 1.13.2.1 log @Pull up to last week's -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 1999/09/25 04:27:55 enami Exp $ a3 3 .if ${MACHINE} == "i386" SUBDIR+= mbr_bootsel .endif d5 1 a5 2 .if (${MACHINE} == "i386" || ${MACHINE} == "bebox" || \ ${MACHINE} == "ofppc" || ${MACHINE} == "hpcmips") d10 1 d12 1 @ 1.12 log @Since fdisk/mbr contains a man page, we need to descend into it regardless of which ${MACHINE} we are. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 1999/04/15 22:31:23 fvdl Exp $ d5 1 a5 1 .if (${MACHINE} == "i386" || ${MACHINE} == "powerpc") @ 1.11 log @Add and build a bootselecting MBR (i386). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 1998/10/15 15:23:23 ws Exp $ d3 1 d10 1 a12 3 .if ${MACHINE} == "i386" SUBDIR= mbr mbr_bootsel .endif @ 1.10 log @Separate master bootcode from fdisk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 1997/09/25 05:08:28 lukem Exp $ d12 1 a12 1 SUBDIR= mbr @ 1.10.2.1 log @Pull up bootselector mods, as approved by releng. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 1999/04/15 22:31:23 fvdl Exp $ d12 1 a12 1 SUBDIR= mbr mbr_bootsel @ 1.10.2.2 log @pullup 1.11->1.12 (fvdl) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 1999/05/02 04:42:47 ross Exp $ a2 1 SUBDIR= mbr a8 1 SUBDIR+= mbr_bootsel d11 3 @ 1.9 log @switch to using opendisk(3) from libutil @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 1997/09/15 12:45:51 lukem Exp $ d9 1 d11 2 d18 1 @ 1.8 log @define WARNS?=1 for all of sbin/* @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 1997/09/14 13:52:26 lukem Exp $ d7 2 a8 4 .if (${MACHINE} == "i386") CFLAGS+= -DRAWPARTITION=\'d\' .endif @ 1.7 log @* support ``short'' names of disks (e.g, ``sd0'') instead of requiring the full name (e.g, ``/dev/rsd0d'') a la disklabel(8) (where the code was effectively lifted from ;-) * prefix hexadecimal numbers in output with '0x' @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 1997/09/05 21:26:57 phil Exp $ a14 2 WARNS=1 @ 1.6 log @-- add -b flag for setting fdisk's idea of BIOS geometry from command line -- cleanup so WARNS=1 works -- man page updated to reality. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 1997/06/23 04:23:50 mrg Exp $ d4 1 a4 1 .if ${MACHINE} == "i386" || ${MACHINE} == "powerpc" d7 5 @ 1.5 log @move man pages into share/man. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 1995/03/18 14:55:33 cgd Exp $ d10 2 @ 1.4 log @convert to new RCS Id conventions; reduce my headache @ text @d1 1 a1 1 # $NetBSD$ d3 2 d7 2 @ 1.3 log @specify man pages the new way. @ text @d1 1 a1 2 # from: @@(#)Makefile 1.1 (Julian Elischer) 3/28/93 # $Id: Makefile,v 1.2 1993/08/01 05:37:54 mycroft Exp $ @ 1.2 log @Add RCS identifiers. @ text @d2 1 a2 1 # $Id: $ d6 1 a6 1 MAN8= fdisk.0 @ 1.1 log @added a 386bsd fdisk program, by julian elischer. (patch 111) @ text @d1 2 a2 3 # @@(#)Makefile 1.1 (Julian Elischer) 3/28/93 # # @