allow trailing , in enum if -g

This commit is contained in:
lukem 2001-05-24 11:56:03 +00:00
parent 7ae7504033
commit 18dddf4476
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
%{ %{
/* $NetBSD: cgram.y,v 1.17 2001/02/24 00:43:50 cgd Exp $ */ /* $NetBSD: cgram.y,v 1.18 2001/05/24 11:56:03 lukem Exp $ */
/* /*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@ -35,7 +35,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: cgram.y,v 1.17 2001/02/24 00:43:50 cgd Exp $"); __RCSID("$NetBSD: cgram.y,v 1.18 2001/05/24 11:56:03 lukem Exp $");
#endif #endif
#include <stdlib.h> #include <stdlib.h>
@ -760,7 +760,7 @@ enums_with_opt_comma:
error(54); error(54);
} else { } else {
/* trailing "," prohibited in enum declaration */ /* trailing "," prohibited in enum declaration */
warning(54); gnuism(54);
} }
$$ = $1; $$ = $1;
} }