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

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
Note that GCC's warning says "may be used uninitialized", not "is used
uninitialized". The clang warning flag for that is -Wconditional-uninitialized.
That gives:

<stdin>:9:12: warning: variable 'result' may be uninitialized when used here
[-Wconditional-uninitialized]
    return result;
           ^~~~~~
<stdin>:6:17: note: initialize the variable 'result' to silence this warning
    char *result;
                ^
                 = 0

llvm-g++ is not supported, so we don't care what it does here.

-- 
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