Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src #warn is _not_ the GCC CPP directive that gives a warning, #...



details:   https://anonhg.NetBSD.org/src/rev/c0c51e34e49c
branches:  trunk
changeset: 501717:c0c51e34e49c
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sat Jan 06 00:35:54 2001 +0000

description:
#warn is _not_ the GCC CPP directive that gives a warning, #warning is.
(this code has, apparently, always been wrong, but current GCC is kind
enough to warn about unknown CPP directives.)

diffstat:

 sbin/disklabel/disklabel.5 |  4 ++--
 sys/sys/disklabel.h        |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 6b899510188a -r c0c51e34e49c sbin/disklabel/disklabel.5
--- a/sbin/disklabel/disklabel.5        Sat Jan 06 00:15:00 2001 +0000
+++ b/sbin/disklabel/disklabel.5        Sat Jan 06 00:35:54 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: disklabel.5,v 1.12 2000/07/13 10:33:52 msaitoh Exp $
+.\"    $NetBSD: disklabel.5,v 1.13 2001/01/06 00:35:54 cgd Exp $
 .\"
 .\" Copyright (c) 1987, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -128,7 +128,7 @@
  */
 #define MAXMAXPARTITIONS       22
 #if MAXPARTITIONS > MAXMAXPARTITIONS
-#warn beware: MAXPARTITIONS bigger than MAXMAXPARTITIONS
+#warning beware: MAXPARTITIONS bigger than MAXMAXPARTITIONS
 #endif
 
 
diff -r 6b899510188a -r c0c51e34e49c sys/sys/disklabel.h
--- a/sys/sys/disklabel.h       Sat Jan 06 00:15:00 2001 +0000
+++ b/sys/sys/disklabel.h       Sat Jan 06 00:35:54 2001 +0000
@@ -53,7 +53,7 @@
  */
 #define        MAXMAXPARTITIONS        22
 #if MAXPARTITIONS > MAXMAXPARTITIONS
-#warn beware: MAXPARTITIONS bigger than MAXMAXPARTITIONS
+#warning beware: MAXPARTITIONS bigger than MAXMAXPARTITIONS
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index