]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fix freebsd build
authorBVK Chaitanya <bvk.groups@gmail.com>
Tue, 6 Apr 2010 09:09:11 +0000 (14:39 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Tue, 6 Apr 2010 09:09:11 +0000 (14:39 +0530)
conf/common.rmk
configure.ac
script/yylex.l

index 87ae1e2025123a54fd9a350a878a575c13c5db7b..a83d10662b5611bb56c55429acbbca2dfe666b25 100644 (file)
@@ -653,7 +653,7 @@ normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
 # For sh.mod.
 sh_mod_SOURCES = script/main.c script/script.c script/execute.c \
        script/function.c script/lexer.c grub_script.tab.c grub_script.yy.c
-sh_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS)
+sh_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS) -Wno-error
 sh_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
 ifneq (, $(FONT_SOURCE))
index 1f55a9ca73b30c02fc72c70c5d0a222f7ee62b79..0af597bd384fcb34daa8997f8fde02e990856e33 100644 (file)
@@ -192,7 +192,7 @@ AC_PROG_MKDIR_P
 if test "x$LEX" = x; then
   AC_MSG_ERROR([flex is not found])
 else
-  version=`$LEX --version 2>/dev/null | $SED -e 's/flex //' | $AWK 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3;}'`
+  version=`$LEX --version 2>/dev/null | $SED -e 's/flex//' -e 's/version//' | $AWK -F "." '{ printf "%d", $1 * 10000 + $2 * 100 + $3;}'`
   if test -n "$version" -a "$version" -ge 20535; then
     :
   else
index 4d7c6644832ccfaef09f0ba906d8f741df8dab24..0cf33c9517c3e073178c3288639e5b7280892ba1 100644 (file)
@@ -86,12 +86,6 @@ typedef size_t yy_size_t;
 #define exit(...)
 #endif
 
-#pragma GCC diagnostic warning "-Wunused-variable"
-#pragma GCC diagnostic warning "-Wunused-function"
-#pragma GCC diagnostic warning "-Wunused-parameter"
-#pragma GCC diagnostic warning "-Wstrict-prototypes"
-#pragma GCC diagnostic warning "-Wmissing-prototypes"
-
 }
 
 %option ecs