From owner-p4-projects Thu Jul 18 2:46:55 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4B55B37B401; Thu, 18 Jul 2002 02:46:52 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA22A37B400 for ; Thu, 18 Jul 2002 02:46:51 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C97843E3B for ; Thu, 18 Jul 2002 02:46:51 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6I9kpJU018011 for ; Thu, 18 Jul 2002 02:46:51 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6I9kpPR018008 for perforce@freebsd.org; Thu, 18 Jul 2002 02:46:51 -0700 (PDT) Date: Thu, 18 Jul 2002 02:46:51 -0700 (PDT) Message-Id: <200207180946.g6I9kpPR018008@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 14416 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14416 Change 14416 by peter@peter_ia64 on 2002/07/18 02:45:50 -ffreestanding turns off gcc's "knowledge" of printf etc. explicitly tag it as __printflike() so we can check args. Affected files ... .. //depot/projects/ia64/lib/libstand/stand.h#8 edit Differences ... ==== //depot/projects/ia64/lib/libstand/stand.h#8 (text+ko) ==== @@ -244,9 +244,9 @@ struct disklabel; extern char *getdisklabel(const char *, struct disklabel *); -extern int printf(const char *fmt, ...); +extern int printf(const char *fmt, ...) __printflike(1, 2); extern void vprintf(const char *fmt, _BSD_VA_LIST_); -extern int sprintf(char *buf, const char *cfmt, ...); +extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3); extern void vsprintf(char *buf, const char *cfmt, _BSD_VA_LIST_); extern void twiddle(void); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message