Commit dc209330 by Nicolas Capens Committed by Nicolas Capens

Suppress attributes warnings.

Older compiler versions warned about unknown attributes with -Wattributes instead of -Wunknown-attributes. Use both and suppress warnings about unknown warnings options too. Change-Id: I22252426e73d4984471b9b8415479bd7b57ba0c5 Reviewed-on: https://swiftshader-review.googlesource.com/11289Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 9cb01cfc
...@@ -108,6 +108,9 @@ COMMON_CFLAGS := \ ...@@ -108,6 +108,9 @@ COMMON_CFLAGS := \
-Wno-implicit-exception-spec-mismatch \ -Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual \ -Wno-overloaded-virtual \
-Wno-non-virtual-dtor \ -Wno-non-virtual-dtor \
-Wno-attributes \
-Wno-unknown-attributes \
-Wno-unknown-warning-option \
-fno-operator-names \ -fno-operator-names \
-msse2 \ -msse2 \
-D__STDC_CONSTANT_MACROS \ -D__STDC_CONSTANT_MACROS \
......
...@@ -20,6 +20,9 @@ COMMON_CFLAGS := \ ...@@ -20,6 +20,9 @@ COMMON_CFLAGS := \
-Wno-unused-parameter \ -Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \ -Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual \ -Wno-overloaded-virtual \
-Wno-attributes \
-Wno-unknown-attributes \
-Wno-unknown-warning-option \
-fno-operator-names \ -fno-operator-names \
-msse2 \ -msse2 \
-D__STDC_CONSTANT_MACROS \ -D__STDC_CONSTANT_MACROS \
......
...@@ -8,7 +8,9 @@ COMMON_CFLAGS := \ ...@@ -8,7 +8,9 @@ COMMON_CFLAGS := \
-Wno-unused-parameter \ -Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \ -Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual \ -Wno-overloaded-virtual \
-Wno-attributes \
-Wno-unknown-attributes \ -Wno-unknown-attributes \
-Wno-unknown-warning-option \
-DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \ -DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
-DNO_SANITIZE_FUNCTION= -DNO_SANITIZE_FUNCTION=
......
...@@ -14,6 +14,9 @@ COMMON_CFLAGS := \ ...@@ -14,6 +14,9 @@ COMMON_CFLAGS := \
-Wno-unused-parameter \ -Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \ -Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual \ -Wno-overloaded-virtual \
-Wno-attributes \
-Wno-unknown-attributes \
-Wno-unknown-warning-option \
-DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) -DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
ifneq (16,${PLATFORM_SDK_VERSION}) ifneq (16,${PLATFORM_SDK_VERSION})
......
...@@ -13,7 +13,9 @@ COMMON_CFLAGS := \ ...@@ -13,7 +13,9 @@ COMMON_CFLAGS := \
-Wno-unused-parameter \ -Wno-unused-parameter \
-Wno-implicit-exception-spec-mismatch \ -Wno-implicit-exception-spec-mismatch \
-Wno-overloaded-virtual \ -Wno-overloaded-virtual \
-Wno-attributes \
-Wno-unknown-attributes \ -Wno-unknown-attributes \
-Wno-unknown-warning-option \
-DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \ -DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
-DNO_SANITIZE_FUNCTION= -DNO_SANITIZE_FUNCTION=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment