http://llvm.org/bugs/show_bug.cgi?id=20827

            Bug ID: 20827
           Summary: clang 3.3 suggests initializing pthread_t to NULL
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

wtperf.c:1867:28: warning: variable 'monitor_thread' may be uninitialized when
      used here [-Wconditional-uninitialized]
            (t_ret = pthread_join(monitor_thread, NULL)) != 0) {
                                  ^~~~~~~~~~~~~~
wtperf.c:1744:26: note: initialize the variable 'monitor_thread' to silence
this
      warning
        pthread_t monitor_thread;
                                ^
                                 = NULL

AFAIK, it's never legal to initialize a pthread_t value to anything at all.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to