[PATCH] libc++: remove unused variable in random_device::operator()()

JF Bastien jfb at chromium.org
Wed Feb 4 12:23:22 PST 2015


Hi jvoung,

http://reviews.llvm.org/D7416

Files:
  src/random.cpp

Index: src/random.cpp
===================================================================
--- src/random.cpp
+++ src/random.cpp
@@ -70,7 +70,6 @@
 {
     unsigned r;
     size_t n = sizeof(r);
-    char* p = reinterpret_cast<char*>(&r);
     size_t bytes_written;
     int error = nacl_secure_random(&r, n, &bytes_written);
     if (error != 0)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7416.19344.patch
Type: text/x-patch
Size: 345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150204/d041e435/attachment.bin>


More information about the cfe-commits mailing list