Bug 1298472 - part 1 - suppress more warnings in clang-cl; r=glandium
authorNathan Froyd <froydnj@mozilla.com>
Fri, 09 Sep 2016 09:00:31 -0400
changeset 313816 dab403941f77ba8480394bd2ec31e98bc1851ec2
parent 313815 4c2d01fe1c38a9829008491681f3dd773b760bc4
child 313817 99183448b819dc701ea6c314b937ae38160c5ca4
push id30698
push usercbook@mozilla.com
push dateWed, 14 Sep 2016 10:07:43 +0000
treeherdermozilla-central@501e27643a52 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1298472
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
js/src/old-configure.in
old-configure.in
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -786,16 +786,20 @@ case "$target" in
             # behavior doesn't seem useful, so we turn it off.
             CXXFLAGS="$CXXFLAGS -Wno-microsoft-include"
             # We normally error out on unknown pragmas, but since clang-cl
             # claims to be MSVC, it would be difficult to add
             # #if defined(_MSC_VER) && !defined(__clang__) everywhere we
             # 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,
             # let's just ignore it.
             CFLAGS="$CFLAGS -Wno-deprecated-declarations"
             CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
             # We use a function like:
             #   __declspec(noreturn) __inline void f() {}
--- a/old-configure.in
+++ b/old-configure.in
@@ -1138,16 +1138,20 @@ case "$target" in
             # behavior doesn't seem useful, so we turn it off.
             CXXFLAGS="$CXXFLAGS -Wno-microsoft-include"
             # We normally error out on unknown pragmas, but since clang-cl
             # claims to be MSVC, it would be difficult to add
             # #if defined(_MSC_VER) && !defined(__clang__) everywhere we
             # 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,
             # let's just ignore it.
             CFLAGS="$CFLAGS -Wno-deprecated-declarations"
             CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
             # We use a function like:
             #   __declspec(noreturn) __inline void f() {}