зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
08d4a46b4f
Коммит
d39c537a2f
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче