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

Unified Diff: build/common.gypi

Issue 1390223002: Enforce WARN_UNUSED_RESULT attribute on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index cce7b3ca56ed001a1e3f08c54cc1e076e68aee53..7ea18a8aa8092ae93d1d23889a5d66be06d5e4dc 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -5764,6 +5764,7 @@
'-Wno-microsoft-enum-value', # http://crbug.com/505296
'-Wno-unknown-pragmas', # http://crbug.com/505314
'-Wno-unused-value', # http://crbug.com/505318
+ '-Wunused-result',
dcheng 2015/10/07 16:09:59 /W4 doesn't seem to enable this warning, so I had
hans 2015/10/07 16:25:26 Hmm, clang-cl /W4 does enable it for me. Can you d
dcheng 2015/10/07 16:41:34 Hm... Well it's definitely not enabled by default
hans 2015/10/07 16:51:29 D'oh, it's right there: -Wno-unused-value also dis
dcheng 2015/10/07 17:46:15 Done.
],
},
}],

Powered by Google App Engine
This is Rietveld 408576698