[LLVMbugs] [Bug 8183] 100 warnings containing "indirection of non-volatile null pointer"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 18 23:44:44 PDT 2010


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

Chandler Carruth <chandlerc at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Chandler Carruth <chandlerc at gmail.com> 2010-09-19 01:44:43 CDT ---
Sorry about the spam. Bugzilla keeps eating my post. Last try, this time w/o
quoting:

I'm not sure what you're surprised here. The warning from clang is *because*
the argument will always be NULL. From what little I can see, this warning is
working as intended, but of course, since you haven't posted the actual code,
much less a nice reduced test case that shows the problem, I can't really help
much.

>   Any suggestions to squelch the warning??

The warning itself told you: "note: consider using __builtin_trap() or
qualifying pointer with 'volatile'".

If you feel there is actually a bug here, please re-open with a test case and a
specific problem with Clang's behavior when compiling the test case. Currently,
I have no idea what real code led to this warning, or why you feel it was
inappropriate for Clang to warn here.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list