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

Unified Diff: src/IceRNG.h

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
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 side-by-side diff with in-line comments
Download patch
Index: src/IceRNG.h
diff --git a/src/IceRNG.h b/src/IceRNG.h
index 5ddd97f247fedfa551f01bf78cbb4b27e9635244..63c0acd1a8c7c1bdb7f0203f533400f24b29090e 100644
--- a/src/IceRNG.h
+++ b/src/IceRNG.h
@@ -15,8 +15,13 @@
#ifndef SUBZERO_SRC_ICERNG_H
#define SUBZERO_SRC_ICERNG_H
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-parameter"
+#pragma clang diagnostic ignored "-Wshadow"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
+#pragma clang diagnostic pop
+
#include <cstdint>
namespace Ice {
@@ -46,8 +51,8 @@ class RandomNumberGeneratorWrapper {
public:
uint64_t operator()(uint64_t Max) { return RNG.next(Max); }
bool getTrueWithProbability(float Probability);
- explicit RandomNumberGeneratorWrapper(RandomNumberGenerator &RNG)
- : RNG(RNG) {}
+ explicit RandomNumberGeneratorWrapper(RandomNumberGenerator &MyRNG)
+ : RNG(MyRNG) {}
private:
RandomNumberGenerator &RNG;
« no previous file with comments | « src/IceOperand.h ('k') | src/IceRegAlloc.h » ('j') | src/IceTargetLoweringARM32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698