diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-05 01:49:22 -0800 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-12-05 12:08:52 +0000 |
commit | b56f53884be3bab935058b2bbbb4da0b8bbbe7f6 (patch) | |
tree | a03a91e0be6188dad8ce6b436f68ac94207dd57f /epan/Makefile.nmake | |
parent | 4d337f421389e901bf1d4246f9ecb2f7b363aef0 (diff) |
Build Flex-generated files with "warnings are errors".
We shouldn't be getting warnings at this point.
Change-Id: I363a48546cb8d916425f42962ae1697d52ed9a29
Reviewed-on: https://code.wireshark.org/review/12436
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/Makefile.nmake')
-rw-r--r-- | epan/Makefile.nmake | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/epan/Makefile.nmake b/epan/Makefile.nmake index 6384324b78..93aeae13dd 100644 --- a/epan/Makefile.nmake +++ b/epan/Makefile.nmake @@ -13,36 +13,25 @@ LINK= link # # These are the flags for all source files. # -COMMON_CFLAGS=\ - $(STANDARD_CFLAGS) \ +COMMON_CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \ /I. /I.. /I../wiretap $(GLIB_CFLAGS) \ $(ZLIB_CFLAGS) $(C_ARES_CFLAGS) $(ADNS_CFLAGS) \ $(LUA_CFLAGS) $(GNUTLS_CFLAGS) /I$(PCAP_DIR)\include \ $(SMI_CFLAGS) $(GEOIP_CFLAGS) # -# These are the flags for generated source files; we don't include -# $(WARNINGS_ARE_ERRORS), so that we flex's non-LLP64-compliant output -# doesn't cause compilation to fail. -# -GENERATED_CFLAGS=\ - $(COMMON_CFLAGS) -DWS_BUILD_DLL - -# # These are the flags for test programs; we don't include -DWS_BUILD_DLL, # as we're building test programs that link with the library, not routines # incorporated into the library, so they should *import* stuff from the # library, not *export* stuff from the library. # -TEST_CFLAGS=\ - $(WARNINGS_ARE_ERRORS) $(COMMON_CFLAGS) +TEST_CFLAGS=$(COMMON_CFLAGS) # -# These are flags for everything else; we include $(WARNINGS_ARE_ERRORS), -# as the code should be warning-free, and we include -DWS_BUILD_DLL, +# These are flags for everything else; we include -DWS_BUILD_DLL, # as these are library routines, not test programs. # -CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS) -DWS_BUILD_DLL +CFLAGS=$(COMMON_CFLAGS) -DWS_BUILD_DLL !IFDEF LUA_DIR WSLUA_LIB=wslua\wslua.lib @@ -401,7 +390,7 @@ RUNLEX=../tools/runlex.sh # diam_dict_lex.h: diam_dict.c diam_dict.obj : diam_dict.c - $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $? + $(CC) $(CFLAGS) -Fd.\ -c $? # # This depends on dtd_grammar.h to force dtd_grammar.h to be @@ -413,19 +402,19 @@ diam_dict.obj : diam_dict.c dtd_parse_lex.h: dtd_parse.c dtd_parse.obj : dtd_grammar.h dtd_parse.obj : dtd_parse.c - $(CC) $(GENERATED_CFLAGS) -Fd.\ -c dtd_parse.c + $(CC) $(CFLAGS) -Fd.\ -c dtd_parse.c dtd_preparse_lex.h: dtd_preparse.c dtd_preparse.obj : dtd_preparse.c - $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $? + $(CC) $(CFLAGS) -Fd.\ -c $? radius_dict_lex.h: radius_dict.c radius_dict.obj : radius_dict.c - $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $? + $(CC) $(CFLAGS) -Fd.\ -c $? uat_load_lex.h: uat_load.c uat_load.obj : uat_load.c - $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $? + $(CC) $(CFLAGS) -Fd.\ -c $? LEMON=..\tools\lemon |