head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.4
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.2
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.8
	netbsd-10-base:1.4
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.6
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.4.0.4
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	is-mlppp:1.4.0.2
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.4
	netbsd-9:1.2.0.2
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.36
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.1.0.34
	pgoyette-compat-base:1.1
	netbsd-7-1-1-RELEASE:1.1
	matt-nb8-mediatek:1.1.0.32
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.30
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.28
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.26
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.0.24
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.1.0.22
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	netbsd-7-1-RC1:1.1
	pgoyette-localcount-20161104:1.1
	netbsd-7-0-2-RELEASE:1.1
	localcount-20160914:1.1
	netbsd-7-nhusb:1.1.0.20
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.18
	pgoyette-localcount-base:1.1
	netbsd-7-0-1-RELEASE:1.1
	netbsd-7-0:1.1.0.16
	netbsd-7-0-RELEASE:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	netbsd-7:1.1.0.14
	netbsd-7-base:1.1
	yamt-pagecache:1.1.0.12
	yamt-pagecache-base9:1.1
	tls-earlyentropy:1.1.0.10
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.8
	riastradh-drm2-base:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.6
	khorben-n900:1.1.0.4
	agc-symver:1.1.0.2
	agc-symver-base:1.1;
locks; strict;
comment	@# @;


1.8
date	2023.08.03.14.56.36;	author rin;	state Exp;
branches;
next	1.7;
commitid	fl6rr2AREazmQlzE;

1.7
date	2023.08.03.13.36.08;	author rin;	state Exp;
branches;
next	1.6;
commitid	cA3k7MJ9XZ44olzE;

1.6
date	2023.06.03.21.30.21;	author lukem;	state Exp;
branches;
next	1.5;
commitid	jxeKWdozvzDbZxrE;

1.5
date	2023.06.03.09.09.05;	author lukem;	state Exp;
branches;
next	1.4;
commitid	aBaIRnuykonRStrE;

1.4
date	2019.10.13.07.28.07;	author mrg;	state Exp;
branches;
next	1.3;
commitid	vRNwN94v7NgB2GGB;

1.3
date	2019.09.29.23.44.59;	author mrg;	state Exp;
branches;
next	1.2;
commitid	xrLFk44PaFrGTXEB;

1.2
date	2019.02.04.04.05.16;	author mrg;	state Exp;
branches;
next	1.1;
commitid	HC3U7qZ7jiPeZoaB;

1.1
date	2013.03.23.15.42.40;	author christos;	state Exp;
branches
	1.1.6.1
	1.1.12.1
	1.1.36.1;
next	;

1.1.6.1
date	2013.03.23.15.42.40;	author tls;	state dead;
branches;
next	1.1.6.2;
commitid	OnlO1cBgtQRcIHUw;

1.1.6.2
date	2013.06.23.06.28.28;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;

1.1.12.1
date	2013.03.23.15.42.40;	author yamt;	state dead;
branches;
next	1.1.12.2;
commitid	R4Uq0ZjwX4Ul9yBx;

1.1.12.2
date	2014.05.22.15.50.59;	author yamt;	state Exp;
branches;
next	;
commitid	R4Uq0ZjwX4Ul9yBx;

1.1.36.1
date	2019.06.10.21.51.36;	author christos;	state Exp;
branches;
next	1.1.36.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.36.2
date	2020.04.13.07.56.29;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;


desc
@@


1.8
log
@Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@@)
@
text
@#	$NetBSD: Makefile,v 1.6 2023/06/03 21:30:21 lukem Exp $	

.include <bsd.own.mk>
WARNS=5
BINDIR=/sbin

SRCDIR=	${.CURDIR}/../dist
.PATH:	${SRCDIR}

PROG=	pdisk

SRCS=	bitfield.c convert.c deblock_media.c dump.c \
	file_media.c hfs_misc.c io.c layout_dump.c \
	media.c partition_map.c pathname.c pdisk.c util.c \
	validate.c errors.c

MAN=	pdisk.8 

CPPFLAGS+=	-I${SRCDIR}

CPPFLAGS+=	-D__unix__

COPTS.file_media.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
COPTS.partition_map.c+=	${CC_WNO_STRINGOP_TRUNCATION}
COPTS.pathname.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
COPTS.pdisk.c+=		${CC_WNO_IMPLICIT_FALLTHROUGH} ${CC_WNO_STRINGOP_TRUNCATION}

.include <bsd.prog.mk>
@


1.7
log
@Sprinkle CC_WNO_USE_AFTER_FREE for GCC 12

All of them are blamed for idiom equivalent to:
	newbuf = realloc(buf, size);
	p = newbuf + (p - buf);
@
text
@a23 1
COPTS.io.c+=		${CC_WNO_USE_AFTER_FREE}
@


1.6
log
@adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}

Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of
the older style more complex expressions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2023/06/03 09:09:05 lukem Exp $	
d24 1
@


1.5
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.4 2019/10/13 07:28:07 mrg Exp $	
d23 1
a23 6
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS.file_media.c+=	-Wno-implicit-fallthrough
COPTS.pathname.c+=	-Wno-implicit-fallthrough
COPTS.pdisk.c+=		-Wno-implicit-fallthrough
.endif

d25 2
a26 1
COPTS.pdisk.c+=		${CC_WNO_STRINGOP_TRUNCATION}
@


1.4
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.3 2019/09/29 23:44:59 mrg Exp $	
d29 2
a30 2
COPTS.partition_map.c+=	${GCC_NO_STRINGOP_TRUNCATION}
COPTS.pdisk.c+=		${GCC_NO_STRINGOP_TRUNCATION}
@


1.3
log
@convert HAVE_GCC == 7 to HAVE_GCC >= 7.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2019/02/04 04:05:16 mrg Exp $	
d24 3
a26 3
COPTS.file_media.c+=	-Wno-error=implicit-fallthrough
COPTS.pathname.c+=	-Wno-error=implicit-fallthrough
COPTS.pdisk.c+=		-Wno-error=implicit-fallthrough
d29 3
@


1.2
log
@- use -Wno-error=implicit-fallthrough with GCC7.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2013/03/23 15:42:40 christos Exp $	
d23 1
a23 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
@


1.1
log
@add Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2012/04/06 22:42:50 christos Exp $	
d23 6
@


1.1.36.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2019/02/04 04:05:16 mrg Exp $	
a22 6
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
COPTS.file_media.c+=	-Wno-error=implicit-fallthrough
COPTS.pathname.c+=	-Wno-error=implicit-fallthrough
COPTS.pdisk.c+=		-Wno-error=implicit-fallthrough
.endif

@


1.1.36.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$	
d23 4
a26 4
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS.file_media.c+=	-Wno-implicit-fallthrough
COPTS.pathname.c+=	-Wno-implicit-fallthrough
COPTS.pdisk.c+=		-Wno-implicit-fallthrough
a28 3
COPTS.partition_map.c+=	${GCC_NO_STRINGOP_TRUNCATION}
COPTS.pdisk.c+=		${GCC_NO_STRINGOP_TRUNCATION}

@


1.1.12.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 15:50:59 +0000
@
text
@d1 23
@


1.1.12.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 23
#	$NetBSD$	

.include <bsd.own.mk>
WARNS=5
BINDIR=/sbin

SRCDIR=	${.CURDIR}/../dist
.PATH:	${SRCDIR}

PROG=	pdisk

SRCS=	bitfield.c convert.c deblock_media.c dump.c \
	file_media.c hfs_misc.c io.c layout_dump.c \
	media.c partition_map.c pathname.c pdisk.c util.c \
	validate.c errors.c

MAN=	pdisk.8 

CPPFLAGS+=	-I${SRCDIR}

CPPFLAGS+=	-D__unix__

.include <bsd.prog.mk>
@


1.1.6.1
log
@file Makefile was added on branch tls-maxphys on 2013-06-23 06:28:28 +0000
@
text
@d1 23
@


1.1.6.2
log
@resync from head
@
text
@a0 23
#	$NetBSD$	

.include <bsd.own.mk>
WARNS=5
BINDIR=/sbin

SRCDIR=	${.CURDIR}/../dist
.PATH:	${SRCDIR}

PROG=	pdisk

SRCS=	bitfield.c convert.c deblock_media.c dump.c \
	file_media.c hfs_misc.c io.c layout_dump.c \
	media.c partition_map.c pathname.c pdisk.c util.c \
	validate.c errors.c

MAN=	pdisk.8 

CPPFLAGS+=	-I${SRCDIR}

CPPFLAGS+=	-D__unix__

.include <bsd.prog.mk>
@


