Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Removes yysccsid from skeleton.c; Re-enables -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyt committed Jul 8, 2015
1 parent 0205747 commit 272a266
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion src/kernel/parser/Makefile
Expand Up @@ -27,7 +27,7 @@ else
$(error UNKNOWN OS: $(OS))
endif

CCWARN := -Wchar-subscripts -Wcomment -Wmissing-braces -Wmultichar -Wno-aggregate-return -Wno-unused-function -Wparentheses -Wreturn-type -Wshadow -Wsign-compare -Wsign-promo -Wswitch -Wsystem-headers -Wtrigraphs -Wtrigraphs -Wunused-label -Wunused-value -Wunused-variable -Wwrite-strings $(OSCCWARN)
CCWARN := -Wchar-subscripts -Wcomment -Werror -Wmissing-braces -Wmultichar -Wno-aggregate-return -Wno-unused-function -Wparentheses -Wreturn-type -Wshadow -Wsign-compare -Wsign-promo -Wswitch -Wsystem-headers -Wtrigraphs -Wtrigraphs -Wunused-label -Wunused-value -Wunused-variable -Wwrite-strings $(OSCCWARN)
CCDEF := -DFLG_FAST=1 -DNOT_JAVA_VM -D_GNU_SOURCE -D_REENTRANT
CCINC := -I$(GEMSTONE)/include $(ICU_INCL) -I. $(OSCCINC)
CFLAGS := $(CCDEF) $(CCINC) $(CCWARN) -fPIC -fcheck-new -fmessage-length=0 -fno-exceptions -fno-strict-aliasing $(COPTIMIZE_FLAGS) -m64 -pipe -pthread -x c++
Expand Down
16 changes: 0 additions & 16 deletions src/kernel/parser/byacc/skeleton.c
Expand Up @@ -2,24 +2,8 @@

#include "defs.h"

/* The definition of yysccsid in the banner should be replaced with */
/* a #pragma ident directive if the target C compiler supports */
/* #pragma ident directives. */
/* */
/* If the skeleton is changed, the banner should be changed so that */
/* the altered version can be easily distinguished from the original. */
/* */
/* The #defines included with the banner are there because they are */
/* useful in subsequent code. The macros #defined in the header or */
/* the body either are not useful outside of semantic actions or */
/* are conditional. */

const char *banner[] =
{
"#ifndef lint",
"static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";",
"#endif",
"",
"#define YYBYACC 1",
CONCAT1("#define YYMAJOR ", YYMAJOR),
CONCAT1("#define YYMINOR ", YYMINOR),
Expand Down

0 comments on commit 272a266

Please sign in to comment.