Closed GoogleCodeExporter closed 9 years ago
The macro VLOG* uses the macro VLOG_IS_ON which has a braced-group within
expression
(http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Statement-Exprs.html#Statement-Expr
s). I
I don't know whether it is possible to write this macro without braced-group.
That
would fix the problem. At the moment instead of not using -pedantic one can do
__extension__ VLOG_IF(10, (0 == 1))
<< "test";
to disable pedantic warnings for the following expression.
I haven't found a gcc option to disable those warnings in general.
Original comment by jens.k.mueller@gmail.com
on 25 Mar 2010 at 12:54
Fixed in http://code.google.com/p/google-glog/source/detail?r=82
Thanks for your report and suggesting __extension__ !
Original comment by shinichi...@gmail.com
on 28 May 2010 at 3:36
Original issue reported on code.google.com by
jens.k.mueller@gmail.com
on 22 Jan 2010 at 11:05Attachments: