summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2007-10-12 21:40:50 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2007-10-12 21:40:50 +0000
commitd7ee84a9145aa305bcc341339b0d4211b246b8e4 (patch)
tree9c33ae433384ccd87c8513b41444205fe824772a /usr.bin/pcc
parentfdccb3924af2aadc5987351383f2eb2d94aa6898 (diff)
Fix broken build. Reported by Gregory McGarry on pcc-list.
ok otto@
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r--usr.bin/pcc/cpp/cpp.c4
-rw-r--r--usr.bin/pcc/cpp/cpp.h5
2 files changed, 5 insertions, 4 deletions
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 *);