Bug 1539036 - Mark JSAPI headers as "system headers". r=sfink

Differential Revision: https://phabricator.services.mozilla.com/D24846

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Philip Chimento 2019-03-31 22:26:43 +00:00
parent b3ca39b66b
commit 4ecb2fb6f0

View File

@ -8,4 +8,7 @@ Description: The Mozilla library for JavaScript
Version: @MOZILLA_VERSION@
@PKGCONF_REQUIRES_PRIVATE@
Libs: -L${libdir} -l@JS_LIBRARY_NAME@
Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
# Use -isystem for includes rather than -I, to mark them as "system headers"
# that don't generate warning diagnostics. For justification, see
# https://bugzilla.mozilla.org/show_bug.cgi?id=1539036
Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@