summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-02-17 17:39:29 +0000
committermiod <miod@openbsd.org>2013-02-17 17:39:29 +0000
commit8cbc5af531913aea7e7e3a439971c1d288e9e8c7 (patch)
tree9daf9626c9b24cf24dc4e815c0a5620248fcb15a /sys/kern/subr_disk.c
parentWe deprecated returning to %g7 after a successful system call long ago. (diff)
downloadwireguard-openbsd-8cbc5af531913aea7e7e3a439971c1d288e9e8c7.tar.xz
wireguard-openbsd-8cbc5af531913aea7e7e3a439971c1d288e9e8c7.zip
Comment out recently added __attribute__((__format__(__kprintf__))) annotations
in MI code; gcc 2.95 does not accept such annotation for function pointer declarations, only function prototypes. To be uncommented once gcc 2.95 bites the dust.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index c39538ba772..b8b47b17f31 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.146 2013/02/09 20:56:35 miod Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.147 2013/02/17 17:39:29 miod Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -756,7 +756,7 @@ diskerr(struct buf *bp, char *dname, char *what, int pri, int blkdone,
struct disklabel *lp)
{
int unit = DISKUNIT(bp->b_dev), part = DISKPART(bp->b_dev);
- int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2)));
+ int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */;
char partname = 'a' + part;
daddr64_t sn;