From d7ee84a9145aa305bcc341339b0d4211b246b8e4 Mon Sep 17 00:00:00 2001 From: Stefan Kempf Date: Fri, 12 Oct 2007 21:40:50 +0000 Subject: Fix broken build. Reported by Gregory McGarry on pcc-list. ok otto@ --- usr.bin/pcc/cpp/cpp.c | 4 ++-- usr.bin/pcc/cpp/cpp.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin/pcc') diff --git a/usr.bin/pcc/cpp/cpp.c b/usr.bin/pcc/cpp/cpp.c index 4506592c717..930b0aafd78 100644 --- a/usr.bin/pcc/cpp/cpp.c +++ b/usr.bin/pcc/cpp/cpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpp.c,v 1.3 2007/10/12 18:14:14 stefan Exp $ */ +/* $OpenBSD: cpp.c,v 1.4 2007/10/12 21:40:49 stefan Exp $ */ /* * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se). @@ -728,7 +728,7 @@ bad: error("bad define"); } void -warning(usch *s) +xwarning(usch *s) { usch *t; usch *sb = stringbuf; diff --git a/usr.bin/pcc/cpp/cpp.h b/usr.bin/pcc/cpp/cpp.h index d3e7773a522..d9cd672e8e5 100644 --- a/usr.bin/pcc/cpp/cpp.h +++ b/usr.bin/pcc/cpp/cpp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpp.h,v 1.3 2007/10/12 18:14:14 stefan Exp $ */ +/* $OpenBSD: cpp.h,v 1.4 2007/10/12 21:40:49 stefan Exp $ */ /* * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se). @@ -143,7 +143,8 @@ void putch(int); void putstr(usch *s); void line(void); usch *sheap(char *fmt, ...); -void warning(usch *); +void xwarning(usch *); void xerror(usch *); +#define warning(...) xwarning(sheap(__VA_ARGS__)) #define error(...) xerror(sheap(__VA_ARGS__)) void expmac(struct recur *); -- cgit v1.2.3