Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

@@ -22,10 +22,14 @@
 /*
  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
 #ifndef _THR_INLINES_H
 #define _THR_INLINES_H
 
 #include <sys/ccompile.h>
 

@@ -136,11 +140,11 @@
 }
 
 extern __GNU_INLINE int
 set_lock_byte(volatile uint8_t *__lockp)
 {
-        int __value;
+        int __value = 0;
 #if defined(__x86)
         __asm__ __volatile__(
             "movl $1, %0\n\t"
             "xchgb %%dl, %1"
             : "+d" (__value), "+m" (*__lockp));