Kaydet (Commit) cb7a39ac authored tarafından Luboš Luňák's avatar Luboš Luňák

disable warnings in external libs

As in, really disable, so that they do not even show. This moreover
avoids tons of D9025 warnings from MSVC about overriding -W4 with -w.

Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033
Reviewed-on: https://gerrit.libreoffice.org/72899
Tested-by: Jenkins
Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst d6865e5c
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_date_time)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_date_time))
$(eval $(call gb_StaticLibrary_use_unpacked,boost_date_time,boost)) $(eval $(call gb_StaticLibrary_use_unpacked,boost_date_time,boost))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_date_time)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,boost_date_time))
# disable "auto link" "feature" on MSVC # disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boost_date_time,\ $(eval $(call gb_StaticLibrary_add_defs,boost_date_time,\
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_filesystem)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_filesystem))
$(eval $(call gb_StaticLibrary_use_unpacked,boost_filesystem,boost)) $(eval $(call gb_StaticLibrary_use_unpacked,boost_filesystem,boost))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_filesystem)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,boost_filesystem))
# disable "auto link" "feature" on MSVC # disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boost_filesystem,\ $(eval $(call gb_StaticLibrary_add_defs,boost_filesystem,\
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,boost_iostreams)) $(eval $(call gb_StaticLibrary_StaticLibrary,boost_iostreams))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_iostreams)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,boost_iostreams))
# disable "auto link" "feature" on MSVC # disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boost_iostreams,\ $(eval $(call gb_StaticLibrary_add_defs,boost_iostreams,\
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_locale)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_locale))
$(eval $(call gb_StaticLibrary_use_unpacked,boost_locale,boost)) $(eval $(call gb_StaticLibrary_use_unpacked,boost_locale,boost))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_locale)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,boost_locale))
# disable "auto link" "feature" on MSVC # disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boost_locale,\ $(eval $(call gb_StaticLibrary_add_defs,boost_locale,\
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_system)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,boost_system))
$(eval $(call gb_StaticLibrary_use_unpacked,boost_system,boost)) $(eval $(call gb_StaticLibrary_use_unpacked,boost_system,boost))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_system)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,boost_system))
# disable "auto link" "feature" on MSVC # disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boost_system,\ $(eval $(call gb_StaticLibrary_add_defs,boost_system,\
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,breakpad)) $(eval $(call gb_StaticLibrary_StaticLibrary,breakpad))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,breakpad)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,breakpad))
$(eval $(call gb_StaticLibrary_use_unpacked,breakpad,breakpad)) $(eval $(call gb_StaticLibrary_use_unpacked,breakpad,breakpad))
......
...@@ -13,7 +13,7 @@ $(eval $(call gb_Library_use_external,clucene,zlib)) ...@@ -13,7 +13,7 @@ $(eval $(call gb_Library_use_external,clucene,zlib))
$(eval $(call gb_Library_use_unpacked,clucene,clucene)) $(eval $(call gb_Library_use_unpacked,clucene,clucene))
$(eval $(call gb_Library_set_warnings_not_errors,clucene)) $(eval $(call gb_Library_set_warnings_disabled,clucene))
$(eval $(call gb_Library_set_include,clucene,\ $(eval $(call gb_Library_set_include,clucene,\
-I$(call gb_UnpackedTarball_get_dir,clucene)/inc/internal \ -I$(call gb_UnpackedTarball_get_dir,clucene)/inc/internal \
...@@ -35,15 +35,6 @@ $(eval $(call gb_Library_add_defs,clucene, \ ...@@ -35,15 +35,6 @@ $(eval $(call gb_Library_add_defs,clucene, \
-D_HAS_AUTO_PTR_ETC=1 \ -D_HAS_AUTO_PTR_ETC=1 \
)) ))
# clucene is riddled with warnings... let's spare use
# the pointless spamming
$(eval $(call gb_Library_add_cxxflags,clucene,\
-w \
))
$(eval $(call gb_Library_add_cflags,clucene,\
-w \
))
ifeq ($(OS),LINUX) ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,clucene,\ $(eval $(call gb_Library_add_libs,clucene,\
-lm \ -lm \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,epoxy)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,epoxy))
$(eval $(call gb_Library_use_unpacked,epoxy,epoxy)) $(eval $(call gb_Library_use_unpacked,epoxy,epoxy))
$(eval $(call gb_Library_set_warnings_not_errors,epoxy)) $(eval $(call gb_Library_set_warnings_disabled,epoxy))
$(eval $(call gb_Library_set_include,epoxy,\ $(eval $(call gb_Library_set_include,epoxy,\
-I$(call gb_UnpackedTarball_get_dir,epoxy)/include \ -I$(call gb_UnpackedTarball_get_dir,epoxy)/include \
...@@ -19,15 +19,6 @@ $(eval $(call gb_Library_set_include,epoxy,\ ...@@ -19,15 +19,6 @@ $(eval $(call gb_Library_set_include,epoxy,\
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
# epoxy is riddled with warnings... let's spare us
# the pointless spamming
$(eval $(call gb_Library_add_cxxflags,epoxy,\
-w \
))
$(eval $(call gb_Library_add_cflags,epoxy,\
-w \
))
ifeq ($(OS),LINUX) ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,epoxy,\ $(eval $(call gb_Library_add_libs,epoxy,\
-ldl \ -ldl \
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,expat)) $(eval $(call gb_StaticLibrary_StaticLibrary,expat))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,expat)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,expat))
$(eval $(call gb_StaticLibrary_use_unpacked,expat,expat)) $(eval $(call gb_StaticLibrary_use_unpacked,expat,expat))
...@@ -42,11 +42,6 @@ $(eval $(call gb_StaticLibrary_add_defs,expat,\ ...@@ -42,11 +42,6 @@ $(eval $(call gb_StaticLibrary_add_defs,expat,\
)) ))
endif endif
# suppress warning spam
$(eval $(call gb_StaticLibrary_add_cflags,expat,\
-w \
))
$(eval $(call gb_StaticLibrary_add_generated_cobjects,expat,\ $(eval $(call gb_StaticLibrary_add_generated_cobjects,expat,\
UnpackedTarball/expat/lib/loadlibrary \ UnpackedTarball/expat/lib/loadlibrary \
UnpackedTarball/expat/lib/xmlparse \ UnpackedTarball/expat/lib/xmlparse \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,expat_x64)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,expat_x64))
$(eval $(call gb_StaticLibrary_set_x64,expat_x64,YES)) $(eval $(call gb_StaticLibrary_set_x64,expat_x64,YES))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,expat_x64)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,expat_x64))
$(eval $(call gb_StaticLibrary_use_unpacked,expat_x64,expat)) $(eval $(call gb_StaticLibrary_use_unpacked,expat_x64,expat))
......
...@@ -19,7 +19,7 @@ $(eval $(call gb_Library_use_externals,gpgmepp,\ ...@@ -19,7 +19,7 @@ $(eval $(call gb_Library_use_externals,gpgmepp,\
$(eval $(call gb_LinkTarget_use_external_project,\ $(eval $(call gb_LinkTarget_use_external_project,\
$(call gb_Library_get_linktarget,gpgmepp),gpgmepp,full)) $(call gb_Library_get_linktarget,gpgmepp),gpgmepp,full))
$(eval $(call gb_Library_set_warnings_not_errors,gpgmepp)) $(eval $(call gb_Library_set_warnings_disabled,gpgmepp))
$(eval $(call gb_Library_set_include,gpgmepp,\ $(eval $(call gb_Library_set_include,gpgmepp,\
-I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src \ -I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,graphite)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,graphite))
$(eval $(call gb_StaticLibrary_use_unpacked,graphite,graphite)) $(eval $(call gb_StaticLibrary_use_unpacked,graphite,graphite))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,graphite)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,graphite))
$(eval $(call gb_StaticLibrary_set_include,graphite,\ $(eval $(call gb_StaticLibrary_set_include,graphite,\
-I$(call gb_UnpackedTarball_get_dir,graphite/include) \ -I$(call gb_UnpackedTarball_get_dir,graphite/include) \
......
...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_use_unpacked,hunspell,hunspell)) ...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_use_unpacked,hunspell,hunspell))
$(eval $(call gb_StaticLibrary_use_external,hunspell,icu_headers)) $(eval $(call gb_StaticLibrary_use_external,hunspell,icu_headers))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,hunspell)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,hunspell))
$(eval $(call gb_StaticLibrary_add_defs,hunspell,\ $(eval $(call gb_StaticLibrary_add_defs,hunspell,\
-DHUNSPELL_STATIC \ -DHUNSPELL_STATIC \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,hyphen)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,hyphen))
$(eval $(call gb_StaticLibrary_use_unpacked,hyphen,hyphen)) $(eval $(call gb_StaticLibrary_use_unpacked,hyphen,hyphen))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,hyphen)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,hyphen))
$(eval $(call gb_StaticLibrary_add_generated_cobjects,hyphen,\ $(eval $(call gb_StaticLibrary_add_generated_cobjects,hyphen,\
UnpackedTarball/hyphen/hyphen \ UnpackedTarball/hyphen/hyphen \
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,libcmis)) $(eval $(call gb_StaticLibrary_StaticLibrary,libcmis))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,libcmis)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,libcmis))
ifeq ($(COM_IS_CLANG),TRUE) ifeq ($(COM_IS_CLANG),TRUE)
# Avoid narrowing conversion error (even though the option is technically a warning) # Avoid narrowing conversion error (even though the option is technically a warning)
......
...@@ -21,7 +21,7 @@ $(eval $(call gb_Library_use_externals,etonyek,\ ...@@ -21,7 +21,7 @@ $(eval $(call gb_Library_use_externals,etonyek,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,etonyek)) $(eval $(call gb_Library_set_warnings_disabled,etonyek))
$(eval $(call gb_Library_set_precompiled_header,etonyek,$(SRCDIR)/external/libetonyek/inc/pch/precompiled_etonyek)) $(eval $(call gb_Library_set_precompiled_header,etonyek,$(SRCDIR)/external/libetonyek/inc/pch/precompiled_etonyek))
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,libexttextcat)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,libexttextcat))
$(eval $(call gb_StaticLibrary_use_unpacked,libexttextcat,libexttextcat)) $(eval $(call gb_StaticLibrary_use_unpacked,libexttextcat,libexttextcat))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,libexttextcat)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,libexttextcat))
$(eval $(call gb_StaticLibrary_add_generated_cobjects,libexttextcat,\ $(eval $(call gb_StaticLibrary_add_generated_cobjects,libexttextcat,\
UnpackedTarball/libexttextcat/src/common \ UnpackedTarball/libexttextcat/src/common \
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,mwaw,\ ...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,mwaw,\
revenge \ revenge \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,mwaw)) $(eval $(call gb_Library_set_warnings_disabled,mwaw))
$(eval $(call gb_Library_set_precompiled_header,mwaw,$(SRCDIR)/external/libmwaw/inc/pch/precompiled_mwaw)) $(eval $(call gb_Library_set_precompiled_header,mwaw,$(SRCDIR)/external/libmwaw/inc/pch/precompiled_mwaw))
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,libnumbertext)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,libnumbertext))
$(eval $(call gb_StaticLibrary_use_unpacked,libnumbertext,libnumbertext)) $(eval $(call gb_StaticLibrary_use_unpacked,libnumbertext,libnumbertext))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,libnumbertext)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,libnumbertext))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,libnumbertext,\ $(eval $(call gb_StaticLibrary_add_generated_exception_objects,libnumbertext,\
UnpackedTarball/libnumbertext/src/Soros \ UnpackedTarball/libnumbertext/src/Soros \
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,odfgen,\ ...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,odfgen,\
revenge \ revenge \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,odfgen)) $(eval $(call gb_Library_set_warnings_disabled,odfgen))
$(eval $(call gb_Library_set_include,odfgen,\ $(eval $(call gb_Library_set_include,odfgen,\
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \ -I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
......
...@@ -18,7 +18,7 @@ $(eval $(call gb_Library_use_externals,orcus-parser,\ ...@@ -18,7 +18,7 @@ $(eval $(call gb_Library_use_externals,orcus-parser,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,orcus-parser)) $(eval $(call gb_Library_set_warnings_disabled,orcus-parser))
$(eval $(call gb_Library_set_include,orcus-parser,\ $(eval $(call gb_Library_set_include,orcus-parser,\
-I$(call gb_UnpackedTarball_get_dir,liborcus)/include \ -I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
......
...@@ -20,7 +20,7 @@ $(eval $(call gb_Library_use_externals,orcus,\ ...@@ -20,7 +20,7 @@ $(eval $(call gb_Library_use_externals,orcus,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,orcus)) $(eval $(call gb_Library_set_warnings_disabled,orcus))
$(eval $(call gb_Library_set_include,orcus,\ $(eval $(call gb_Library_set_include,orcus,\
-I$(call gb_UnpackedTarball_get_dir,liborcus)/include \ -I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,libpng)) $(eval $(call gb_StaticLibrary_StaticLibrary,libpng))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,libpng)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,libpng))
$(eval $(call gb_StaticLibrary_use_unpacked,libpng,libpng)) $(eval $(call gb_StaticLibrary_use_unpacked,libpng,libpng))
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,revenge,\ ...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,revenge,\
boost_headers \ boost_headers \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,revenge)) $(eval $(call gb_Library_set_warnings_disabled,revenge))
$(eval $(call gb_Library_set_include,revenge,\ $(eval $(call gb_Library_set_include,revenge,\
-I$(call gb_UnpackedTarball_get_dir,librevenge)/inc \ -I$(call gb_UnpackedTarball_get_dir,librevenge)/inc \
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,staroffice,\ ...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,staroffice,\
revenge \ revenge \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,staroffice)) $(eval $(call gb_Library_set_warnings_disabled,staroffice))
$(eval $(call gb_Library_set_include,staroffice,\ $(eval $(call gb_Library_set_include,staroffice,\
-I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \ -I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \
......
...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_use_externals,wpd,\ ...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_use_externals,wpd,\
revenge \ revenge \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,wpd)) $(eval $(call gb_Library_set_warnings_disabled,wpd))
$(eval $(call gb_Library_set_include,wpd,\ $(eval $(call gb_Library_set_include,wpd,\
-I$(call gb_UnpackedTarball_get_dir,libwpd)/inc \ -I$(call gb_UnpackedTarball_get_dir,libwpd)/inc \
......
...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_use_externals,wpg,\ ...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_use_externals,wpg,\
wpd \ wpd \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,wpg)) $(eval $(call gb_Library_set_warnings_disabled,wpg))
$(eval $(call gb_Library_set_include,wpg,\ $(eval $(call gb_Library_set_include,wpg,\
-I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \ -I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,wps,\ ...@@ -15,7 +15,7 @@ $(eval $(call gb_Library_use_externals,wps,\
revenge \ revenge \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,wps)) $(eval $(call gb_Library_set_warnings_disabled,wps))
$(eval $(call gb_Library_set_include,wps,\ $(eval $(call gb_Library_set_include,wps,\
-I$(call gb_UnpackedTarball_get_dir,libwps)/inc \ -I$(call gb_UnpackedTarball_get_dir,libwps)/inc \
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,mariadb-connector-c)) $(eval $(call gb_StaticLibrary_StaticLibrary,mariadb-connector-c))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,mariadb-connector-c)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,mariadb-connector-c))
$(eval $(call gb_StaticLibrary_use_unpacked,mariadb-connector-c,mariadb-connector-c)) $(eval $(call gb_StaticLibrary_use_unpacked,mariadb-connector-c,mariadb-connector-c))
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,mDNSResponder)) $(eval $(call gb_StaticLibrary_StaticLibrary,mDNSResponder))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,mDNSResponder)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,mDNSResponder))
$(eval $(call gb_StaticLibrary_use_unpacked,mDNSResponder,mDNSResponder)) $(eval $(call gb_StaticLibrary_use_unpacked,mDNSResponder,mDNSResponder))
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,mythes)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,mythes))
$(eval $(call gb_StaticLibrary_use_unpacked,mythes,mythes)) $(eval $(call gb_StaticLibrary_use_unpacked,mythes,mythes))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,mythes)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,mythes))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,mythes,\ $(eval $(call gb_StaticLibrary_add_generated_exception_objects,mythes,\
UnpackedTarball/mythes/mythes \ UnpackedTarball/mythes/mythes \
......
...@@ -22,13 +22,7 @@ $(eval $(call gb_Library_use_externals,neon,\ ...@@ -22,13 +22,7 @@ $(eval $(call gb_Library_use_externals,neon,\
$(eval $(call gb_Library_set_visibility_default,neon)) $(eval $(call gb_Library_set_visibility_default,neon))
# neon has its share of warning... let's spare use $(eval $(call gb_Library_set_warnings_disabled,neon))
# the pointless spamming
$(eval $(call gb_Library_add_cflags,neon,\
-w \
))
$(eval $(call gb_Library_set_warnings_not_errors,neon))
$(eval $(call gb_Library_add_generated_cobjects,neon,\ $(eval $(call gb_Library_add_generated_cobjects,neon,\
UnpackedTarball/neon/src/ne_207 \ UnpackedTarball/neon/src/ne_207 \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,pdfium)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,pdfium))
$(eval $(call gb_Library_use_unpacked,pdfium,pdfium)) $(eval $(call gb_Library_use_unpacked,pdfium,pdfium))
$(eval $(call gb_Library_set_warnings_not_errors,pdfium)) $(eval $(call gb_Library_set_warnings_disabled,pdfium))
$(eval $(call gb_Library_set_precompiled_header,pdfium,$(SRCDIR)/external/pdfium/inc/pch/precompiled_pdfium)) $(eval $(call gb_Library_set_precompiled_header,pdfium,$(SRCDIR)/external/pdfium/inc/pch/precompiled_pdfium))
...@@ -33,14 +33,6 @@ $(eval $(call gb_Library_add_defs,pdfium,\ ...@@ -33,14 +33,6 @@ $(eval $(call gb_Library_add_defs,pdfium,\
-DWIN32_LEAN_AND_MEAN \ -DWIN32_LEAN_AND_MEAN \
)) ))
# Don't show warnings upstream doesn't care about.
$(eval $(call gb_Library_add_cxxflags,pdfium,\
-w \
))
$(eval $(call gb_Library_add_cflags,pdfium,\
-w \
))
$(eval $(call gb_Library_set_generated_cxx_suffix,pdfium,cpp)) $(eval $(call gb_Library_set_generated_cxx_suffix,pdfium,cpp))
# pdfium # pdfium
......
...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_use_unpacked,poppler,poppler)) ...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_use_unpacked,poppler,poppler))
$(eval $(call gb_StaticLibrary_use_external,poppler,libjpeg)) $(eval $(call gb_StaticLibrary_use_external,poppler,libjpeg))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,poppler)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,poppler))
$(eval $(call gb_StaticLibrary_set_include,poppler,\ $(eval $(call gb_StaticLibrary_set_include,poppler,\
-I$(WORKDIR)/UnpackedTarball/poppler \ -I$(WORKDIR)/UnpackedTarball/poppler \
......
...@@ -21,7 +21,7 @@ $(eval $(call gb_Library_use_externals,raptor2,\ ...@@ -21,7 +21,7 @@ $(eval $(call gb_Library_use_externals,raptor2,\
libxslt \ libxslt \
)) ))
$(eval $(call gb_Library_set_warnings_not_errors,raptor2)) $(eval $(call gb_Library_set_warnings_disabled,raptor2))
$(eval $(call gb_Library_add_defs,raptor2,\ $(eval $(call gb_Library_add_defs,raptor2,\
-DHAVE_CONFIG_H \ -DHAVE_CONFIG_H \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,rasqal)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_Library_Library,rasqal))
$(eval $(call gb_Library_use_unpacked,rasqal,rasqal)) $(eval $(call gb_Library_use_unpacked,rasqal,rasqal))
$(eval $(call gb_Library_set_warnings_not_errors,rasqal)) $(eval $(call gb_Library_set_warnings_disabled,rasqal))
$(eval $(call gb_Library_use_external,rasqal,raptor_headers)) $(eval $(call gb_Library_use_external,rasqal,raptor_headers))
......
...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_set_include,rdf, \ ...@@ -16,7 +16,7 @@ $(eval $(call gb_Library_set_include,rdf, \
$(eval $(call gb_Library_use_unpacked,rdf,redland)) $(eval $(call gb_Library_use_unpacked,rdf,redland))
$(eval $(call gb_Library_set_warnings_not_errors,rdf)) $(eval $(call gb_Library_set_warnings_disabled,rdf))
$(eval $(call gb_Library_use_libraries,rdf,\ $(eval $(call gb_Library_use_libraries,rdf,\
raptor2 \ raptor2 \
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_Executable_Executable,ucpp)) $(eval $(call gb_Executable_Executable,ucpp))
$(eval $(call gb_Executable_set_warnings_not_errors,ucpp)) $(eval $(call gb_Executable_set_warnings_disabled,ucpp))
$(eval $(call gb_Executable_use_unpacked,ucpp,ucpp)) $(eval $(call gb_Executable_use_unpacked,ucpp,ucpp))
...@@ -19,12 +19,6 @@ $(eval $(call gb_Executable_add_defs,ucpp,\ ...@@ -19,12 +19,6 @@ $(eval $(call gb_Executable_add_defs,ucpp,\
-DSTAND_ALONE \ -DSTAND_ALONE \
)) ))
# suppress warning spam
$(eval $(call gb_Executable_add_cflags,ucpp,\
-w \
))
$(eval $(call gb_Executable_add_generated_cobjects,ucpp,\ $(eval $(call gb_Executable_add_generated_cobjects,ucpp,\
UnpackedTarball/ucpp/assert \ UnpackedTarball/ucpp/assert \
UnpackedTarball/ucpp/cpp \ UnpackedTarball/ucpp/cpp \
......
...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,zlib)) ...@@ -11,7 +11,7 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,zlib))
$(eval $(call gb_StaticLibrary_use_unpacked,zlib,zlib)) $(eval $(call gb_StaticLibrary_use_unpacked,zlib,zlib))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,zlib)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,zlib))
$(eval $(call gb_StaticLibrary_add_generated_cobjects,zlib,\ $(eval $(call gb_StaticLibrary_add_generated_cobjects,zlib,\
UnpackedTarball/zlib/adler32 \ UnpackedTarball/zlib/adler32 \
......
...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_set_x64,zlib_x64,YES)) ...@@ -13,7 +13,7 @@ $(eval $(call gb_StaticLibrary_set_x64,zlib_x64,YES))
$(eval $(call gb_StaticLibrary_use_unpacked,zlib_x64,zlib)) $(eval $(call gb_StaticLibrary_use_unpacked,zlib_x64,zlib))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,zlib_x64)) $(eval $(call gb_StaticLibrary_set_warnings_disabled,zlib_x64))
$(eval $(call gb_StaticLibrary_set_include,zlib_x64,\ $(eval $(call gb_StaticLibrary_set_include,zlib_x64,\
-I$(call gb_UnpackedTarball_get_dir,zlib) \ -I$(call gb_UnpackedTarball_get_dir,zlib) \
......
...@@ -477,6 +477,7 @@ gb_CppunitTest_use_externals = $(call gb_CppunitTest__forward_to_Linktarget,$(su ...@@ -477,6 +477,7 @@ gb_CppunitTest_use_externals = $(call gb_CppunitTest__forward_to_Linktarget,$(su
gb_CppunitTest_use_custom_headers = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3)) gb_CppunitTest_use_custom_headers = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
gb_CppunitTest_set_visibility_default = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3)) gb_CppunitTest_set_visibility_default = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
gb_CppunitTest_set_warnings_not_errors = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3)) gb_CppunitTest_set_warnings_not_errors = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
gb_CppunitTest_set_warnings_disabled = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
gb_CppunitTest_set_external_code = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3)) gb_CppunitTest_set_external_code = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
gb_CppunitTest_set_generated_cxx_suffix = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3)) gb_CppunitTest_set_generated_cxx_suffix = $(call gb_CppunitTest__forward_to_Linktarget,$(subst gb_CppunitTest_,,$(0)),$(1),$(2),$(3))
......
...@@ -145,6 +145,7 @@ gb_Executable_add_sdi_headers = $(call gb_Executable__forward_to_Linktarget,$(su ...@@ -145,6 +145,7 @@ gb_Executable_add_sdi_headers = $(call gb_Executable__forward_to_Linktarget,$(su
gb_Executable_set_precompiled_header = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3)) gb_Executable_set_precompiled_header = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
gb_Executable_add_nativeres = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3)) gb_Executable_add_nativeres = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
gb_Executable_set_warnings_not_errors = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3)) gb_Executable_set_warnings_not_errors = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
gb_Executable_set_warnings_disabled = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
gb_Executable_set_external_code = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3)) gb_Executable_set_external_code = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
gb_Executable_set_generated_cxx_suffix = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3)) gb_Executable_set_generated_cxx_suffix = $(call gb_Executable__forward_to_Linktarget,$(subst gb_Executable_,,$(0)),$(1),$(2),$(3))
......
...@@ -230,6 +230,7 @@ gb_Library_add_nativeres = $(call gb_Library__forward_to_Linktarget,$(subst gb_L ...@@ -230,6 +230,7 @@ gb_Library_add_nativeres = $(call gb_Library__forward_to_Linktarget,$(subst gb_L
gb_Library_set_nativeres = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3)) gb_Library_set_nativeres = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
gb_Library_set_visibility_default = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3)) gb_Library_set_visibility_default = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
gb_Library_set_warnings_not_errors = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3)) gb_Library_set_warnings_not_errors = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
gb_Library_set_warnings_disabled = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
gb_Library_set_external_code = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3)) gb_Library_set_external_code = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
gb_Library_set_generated_cxx_suffix = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3)) gb_Library_set_generated_cxx_suffix = $(call gb_Library__forward_to_Linktarget,$(subst gb_Library_,,$(0)),$(1),$(2),$(3))
......
...@@ -788,6 +788,7 @@ $(call gb_LinkTarget_get_target,$(1)) : EXTRAOBJECTLISTS := ...@@ -788,6 +788,7 @@ $(call gb_LinkTarget_get_target,$(1)) : EXTRAOBJECTLISTS :=
$(call gb_LinkTarget_get_target,$(1)) : NATIVERES := $(call gb_LinkTarget_get_target,$(1)) : NATIVERES :=
$(call gb_LinkTarget_get_target,$(1)) : VISIBILITY := $(call gb_LinkTarget_get_target,$(1)) : VISIBILITY :=
$(call gb_LinkTarget_get_target,$(1)) : WARNINGS_NOT_ERRORS := $(call gb_LinkTarget_get_target,$(1)) : WARNINGS_NOT_ERRORS :=
$(call gb_LinkTarget_get_target,$(1)) : WARNINGS_DISABLED :=
$(call gb_LinkTarget_get_target,$(1)) : PLUGIN_WARNINGS_AS_ERRORS := $(call gb_LinkTarget_get_target,$(1)) : PLUGIN_WARNINGS_AS_ERRORS :=
$(call gb_LinkTarget_get_target,$(1)) : EXTERNAL_CODE := $(call gb_LinkTarget_get_target,$(1)) : EXTERNAL_CODE :=
$(call gb_LinkTarget_get_target,$(1)) : SOVERSIONSCRIPT := $(call gb_LinkTarget_get_target,$(1)) : SOVERSIONSCRIPT :=
...@@ -1609,6 +1610,12 @@ $(call gb_LinkTarget_get_target,$(1)) : WARNINGS_NOT_ERRORS := $(true) ...@@ -1609,6 +1610,12 @@ $(call gb_LinkTarget_get_target,$(1)) : WARNINGS_NOT_ERRORS := $(true)
endef endef
# call gb_LinkTarget_set_warnings_disabled,linktarget
define gb_LinkTarget_set_warnings_disabled
$(call gb_LinkTarget_get_target,$(1)) : WARNINGS_DISABLED := $(true)