Bug 1298472 - part 1 - suppress more warnings in clang-cl; r=glandium

clang-cl accepts #pragma intrinsic like MSVC, but ignores it, unlike
MSVC.  We're not concerned with the difference here, so just ignore
the warning.

MozReview-Commit-ID: 3FrVqHpIntq

--HG--
extra : rebase_source : 2609c513f287246e46b436a15d2a786164f91b13
This commit is contained in:
Nathan Froyd 2016-09-09 09:00:31 -04:00
parent 08d4a46b4f
commit d39c537a2f
2 changed files with 8 additions and 0 deletions

View File

@ -791,6 +791,10 @@ case "$target" in
# use such pragmas, so just ignore them.
CFLAGS="$CFLAGS -Wno-unknown-pragmas"
CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"
# We get errors about various #pragma intrinsic directives from
# clang-cl, and we don't need to hear about those.
CFLAGS="$CFLAGS -Wno-ignored-pragmas"
CXXFLAGS="$CXXFLAGS -Wno-ignored-pragmas"
# clang-cl's Intrin.h marks things like _ReadWriteBarrier
# as __attribute((__deprecated__)). This is nice to know,
# but since we don't get the equivalent warning from MSVC,

View File

@ -1143,6 +1143,10 @@ case "$target" in
# use such pragmas, so just ignore them.
CFLAGS="$CFLAGS -Wno-unknown-pragmas"
CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"
# We get errors about various #pragma intrinsic directives from
# clang-cl, and we don't need to hear about those.
CFLAGS="$CFLAGS -Wno-ignored-pragmas"
CXXFLAGS="$CXXFLAGS -Wno-ignored-pragmas"
# clang-cl's Intrin.h marks things like _ReadWriteBarrier
# as __attribute((__deprecated__)). This is nice to know,
# but since we don't get the equivalent warning from MSVC,