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

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: Change the previous underscore naming style Created 5 years, 6 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
« src/IceInstARM32.h ('K') | « src/IceOperand.h ('k') | src/IceRegAlloc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRNG.h
diff --git a/src/IceRNG.h b/src/IceRNG.h
index 83001ad2ee5b9a25bb081cf71ef6650a2d62c330..ebc2c4725b9495b7a300062c241d682ce1bac10b 100644
--- a/src/IceRNG.h
+++ b/src/IceRNG.h
@@ -14,8 +14,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 {
@@ -45,8 +50,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;
« src/IceInstARM32.h ('K') | « src/IceOperand.h ('k') | src/IceRegAlloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698