OSDN Git Service

fix compiler warning.
authorNick Kralevich <nnk@google.com>
Thu, 14 Feb 2013 17:44:13 +0000 (09:44 -0800)
committerNick Kralevich <nnk@google.com>
Thu, 14 Feb 2013 17:44:13 +0000 (09:44 -0800)
bionic/libc/bionic/ssp.cpp:41:31: warning: converting to non-pointer type 'uintptr_t {aka unsigned int}' from NULL [-Wconversion-null]

Change-Id: Id154ed4a99520cca64ffd3dbe4d743db6e2da28a

libc/bionic/ssp.cpp

index f01fee6..3b7a1ff 100644 (file)
@@ -38,7 +38,7 @@
 #include "bionic_ssp.h"
 #include "logd.h"
 
-uintptr_t __stack_chk_guard = NULL;
+uintptr_t __stack_chk_guard = 0;
 
 static void __attribute__((constructor)) __init_stack_check_guard() {
   // AT_RANDOM is a pointer to 16 bytes of randomness on the stack.