Module Name:    src
Committed By:   njoly
Date:           Mon Dec 19 16:52:27 UTC 2011

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y

Log Message:
c99: do not warn about trailing comma in enum declaration.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.50 src/usr.bin/xlint/lint1/cgram.y:1.51
--- src/usr.bin/xlint/lint1/cgram.y:1.50	Tue Oct  4 16:19:59 2011
+++ src/usr.bin/xlint/lint1/cgram.y	Mon Dec 19 16:52:27 2011
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.50 2011/10/04 16:19:59 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.51 2011/12/19 16:52:27 njoly Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.50 2011/10/04 16:19:59 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.51 2011/12/19 16:52:27 njoly Exp $");
 #endif
 
 #include <stdlib.h>
@@ -808,7 +808,7 @@ enums_with_opt_comma:
 			error(54);
 		} else {
 			/* trailing "," prohibited in enum declaration */
-			(void)gnuism(54);
+			c99ism(54);
 		}
 		$$ = $1;
 	  }

Reply via email to