diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-17 17:39:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-17 17:39:30 +0000 |
commit | def34b7884bc62ecd193d855bac9b727a55fa7cf (patch) | |
tree | cd3662ae1e51be21477b0a9245b07833f1ca9f83 /sys/kern/subr_pool.c | |
parent | 6ffb1dff9ed1fab68cadd12b789f804b4fdd77fa (diff) |
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_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index f05872ac102..47459a8e332 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.113 2013/02/09 20:56:35 miod Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.114 2013/02/17 17:39:29 miod Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -139,9 +139,9 @@ void pool_large_free_ni(struct pool *, void *); #ifdef DDB void pool_print_pagelist(struct pool_pagelist *, int (*)(const char *, ...) - __attribute__((__format__(__kprintf__,1,2)))); + /* __attribute__((__format__(__kprintf__,1,2))) */); void pool_print1(struct pool *, const char *, int (*)(const char *, ...) - __attribute__((__format__(__kprintf__,1,2)))); + /* __attribute__((__format__(__kprintf__,1,2))) */); #endif #define pool_sleep(pl) msleep(pl, &pl->pr_mtx, PSWP, pl->pr_wchan, 0) @@ -1123,14 +1123,14 @@ pool_reclaim_all(void) */ void pool_printit(struct pool *pp, const char *modif, - int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2)))) + int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */) { pool_print1(pp, modif, pr); } void pool_print_pagelist(struct pool_pagelist *pl, - int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2)))) + int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */) { struct pool_item_header *ph; #ifdef DIAGNOSTIC @@ -1153,7 +1153,7 @@ pool_print_pagelist(struct pool_pagelist *pl, void pool_print1(struct pool *pp, const char *modif, - int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2)))) + int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */) { struct pool_item_header *ph; int print_pagelist = 0; @@ -1372,8 +1372,8 @@ pool_chk(struct pool *pp) #ifdef DDB void pool_walk(struct pool *pp, int full, - int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))), - void (*func)(void *, int, int (*)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))) + int (*pr)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */, + void (*func)(void *, int, int (*)(const char *, ...) /* __attribute__((__format__(__kprintf__,1,2))) */)) { struct pool_item_header *ph; struct pool_item *pi; |