Fix build warnings due to unsupported cflags for clang 75/286675/1
authorChandan Padhi <c.padhi@samsung.com>
Tue, 10 Jan 2023 13:15:41 +0000 (18:45 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Wed, 11 Jan 2023 13:14:26 +0000 (13:14 +0000)
This commit removes following cflags from tizen build that
are not supported for clang.
-Wno-unused-but-set-variable
-Wno-null-pointer-subtraction

Change-Id: Idde981cf2bc247de0a60aca8b2c6c215baf0caa9
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
build/config/compiler/BUILD.gn
third_party/wtl/BUILD.gn

index c4f2a94..2f9b4f1 100644 (file)
@@ -1754,7 +1754,7 @@ config("no_chromium_code") {
       # third-party libraries.
       "-Wno-c++11-narrowing",
     ]
-    if (!is_nacl) {
+    if (!is_nacl && !is_tizen) {
       cflags += [
         # Disabled for similar reasons as -Wunused-variable.
         "-Wno-unused-but-set-variable",
index 5576766..5ce8053 100644 (file)
@@ -8,8 +8,10 @@ config("wtl_includes") {
   if (is_clang) {
     defines = [ "_WTL_NO_AUTOMATIC_NAMESPACE" ]
 
-    # See https://crbug.com/1208419.
-    cflags = [ "-Wno-null-pointer-subtraction" ]
+    if (!is_tizen) {
+      # See https://crbug.com/1208419.
+      cflags = [ "-Wno-null-pointer-subtraction" ]
+    }
   }
 }