Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1216983004: clang/win: Build with some more clang warnings enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-missing-declarations
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 } 793 }
794 794
795 # Building with Clang on Windows is a work in progress and very 795 # Building with Clang on Windows is a work in progress and very
796 # experimental. See crbug.com/82385. 796 # experimental. See crbug.com/82385.
797 # Keep this in sync with the similar block in build/common.gypi 797 # Keep this in sync with the similar block in build/common.gypi
798 if (is_clang) { 798 if (is_clang) {
799 default_warning_flags += [ 799 default_warning_flags += [
800 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 800 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657
801 "-Qunused-arguments", # http://crbug.com/504658 801 "-Qunused-arguments", # http://crbug.com/504658
802 "-Wno-c++11-compat-deprecated-writable-strings", # http://crbug.com/50465 9 802 "-Wno-c++11-compat-deprecated-writable-strings", # http://crbug.com/50465 9
803 "-Wno-deprecated-declarations", # http://crbug.com/504660
804 "-Wno-empty-body", # http://crbug.com/504661 803 "-Wno-empty-body", # http://crbug.com/504661
805 "-Wno-enum-conversion", # http://crbug.com/504662
806 "-Wno-extra-tokens", # http://crbug.com/504663 804 "-Wno-extra-tokens", # http://crbug.com/504663
807 "-Wno-ignored-attributes", # http://crbug.com/504695 805 "-Wno-ignored-attributes", # http://crbug.com/504695
808 "-Wno-incompatible-pointer-types", # http://crbug.com/504696 806 "-Wno-incompatible-pointer-types", # http://crbug.com/504696
809 "-Wno-int-to-void-pointer-cast", # http://crbug.com/504697 807 "-Wno-int-to-void-pointer-cast", # http://crbug.com/504697
810 "-Wno-invalid-noreturn", # http://crbug.com/504698 808 "-Wno-invalid-noreturn", # http://crbug.com/504698
811 "-Wno-logical-op-parentheses", # http://crbug.com/504699 809 "-Wno-logical-op-parentheses", # http://crbug.com/504699
812 "-Wno-microsoft", # http://crbug.com/505296 810 "-Wno-microsoft", # http://crbug.com/505296
813 "-Wno-missing-braces", # http://crbug.com/505297 811 "-Wno-missing-braces", # http://crbug.com/505297
814 "-Wno-msvc-include", # http://crbug.com/505299 812 "-Wno-msvc-include", # http://crbug.com/505299
815 "-Wno-overloaded-virtual", # http://crbug.com/505301 813 "-Wno-overloaded-virtual", # http://crbug.com/505301
816 "-Wno-pointer-sign", # http://crbug.com/505303 814 "-Wno-pointer-sign", # http://crbug.com/505303
817 "-Wno-reorder", # http://crbug.com/505304 815 "-Wno-reorder", # http://crbug.com/505304
818 "-Wno-return-type-c-linkage", # http://crbug.com/505305
819 "-Wno-sometimes-uninitialized", # http://crbug.com/505307 816 "-Wno-sometimes-uninitialized", # http://crbug.com/505307
820 "-Wno-switch", # http://crbug.com/505308 817 "-Wno-switch", # http://crbug.com/505308
821 "-Wno-unknown-pragmas", # http://crbug.com/505314 818 "-Wno-unknown-pragmas", # http://crbug.com/505314
822 "-Wno-unused-function", # http://crbug.com/505316 819 "-Wno-unused-function", # http://crbug.com/505316
823 "-Wno-unused-private-field", # http://crbug.com/505317 820 "-Wno-unused-private-field", # http://crbug.com/505317
824 "-Wno-unused-value", # http://crbug.com/505318 821 "-Wno-unused-value", # http://crbug.com/505318
825 "-Wno-unused-variable", # http://crbug.com/505319 822 "-Wno-unused-variable", # http://crbug.com/505319
826 "-Wno-unused-local-typedef", # http://crbug.com/411648 823 "-Wno-unused-local-typedef", # http://crbug.com/411648
827 ] 824 ]
828 } 825 }
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 cflags += [ "-gsplit-dwarf" ] 1237 cflags += [ "-gsplit-dwarf" ]
1241 } 1238 }
1242 } 1239 }
1243 } 1240 }
1244 1241
1245 config("no_symbols") { 1242 config("no_symbols") {
1246 if (!is_win) { 1243 if (!is_win) {
1247 cflags = [ "-g0" ] 1244 cflags = [ "-g0" ]
1248 } 1245 }
1249 } 1246 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698