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

JF Bastien jfb at chromium.org
Wed Feb 4 12:27:37 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7416

Files:
  libcxx/trunk/src/random.cpp

Index: libcxx/trunk/src/random.cpp
===================================================================
--- libcxx/trunk/src/random.cpp
+++ libcxx/trunk/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.19345.patch
Type: text/x-patch
Size: 384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150204/3950c029/attachment.bin>


More information about the cfe-commits mailing list