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

Unified Diff: BUILD.gn

Issue 2414633002: Disable warning for signed/unsigned mismatch in MSVC (Closed)
Patch Set: Whitespace Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index ef0003273d22d2e6af1a7ca4f925bff40455d049..4f96554eec23e50b989434eb6eab29f8075912fe 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -49,9 +49,17 @@ config("libsrtp_config") {
]
}
+config("libsrtp_warnings") {
+ cflags = []
+ if (is_win) {
+ cflags += [ "/wd4018" ] # Signed/unsigned mismatch in comparison
+ }
+}
+
static_library("libsrtp") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [ ":libsrtp_warnings" ]
public_configs = [ ":libsrtp_config" ]
sources = [
# includes
@@ -108,6 +116,13 @@ static_library("libsrtp") {
config("srtp_test_config") {
include_dirs = [ "test" ]
+ configs = [ ":libsrtp_warnings" ]
+ cflags = []
+ if (is_win && is_clang) {
+ # TODO(mattdr): Bring in https://github.com/cisco/libsrtp/pull/213
+ # and remove this.
+ cflags += [ "-Wno-format" ]
+ }
}
template("srtp_test") {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698