[cfe-commits] r148874 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp test/Analysis/reference.cpp
chandlerc at google.com
Sun Jan 29 15:12:20 PST 2012
On Sun, Jan 29, 2012 at 1:16 PM, Nico Weber <thakis at chromium.org> wrote:
> Chandler / Matthieu: I tried that - it gets rid of the copy
> constructor error, but since the volatile is casted away, the
> Wnull-dereference warning reappears.
Sorry I had a typo in my example, but we did in fact place the const cast
on the reference, not on the pointer. That is what silences the warning:
(I had the '*' in the wrong place last time)
Anyways, I'll try out the abort variation. I do like that much more.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits