Comments (2)
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 [email protected]
on 25 Mar 2010 at 12:54
from google-glog.
Fixed in http://code.google.com/p/google-glog/source/detail?r=82
Thanks for your report and suggesting __extension__ !
Original comment by [email protected]
on 28 May 2010 at 3:36
- Changed state: Fixed
from google-glog.
Related Issues (20)
- link error when using glog with gflags on windows(error LNK2005)
- Possible Race condition at logging.cc:1012 google::RawLog__SetLastTime HOT 2
- Can't get GLOG_log_dir to work HOT 3
- Higher severity messages doesn't appear on lower severity files HOT 4
- Higher severity messages doesn't appear on lower severity files HOT 1
- Higher severity messages doesn't appear on lower severity files HOT 1
- Different debug levels HOT 1
- Selecting facility when logging to syslog. HOT 3
- Valgrind outputs memory leaks in glog HOT 6
- "Setting Flags" section should explicitly mention FLAGS_ prefix HOT 2
- Log file cleanup HOT 1
- Forgot remove .svn? HOT 1
- Please Add DPCHECK macro , too.
- Support forked processes to log to different log files HOT 1
- Document the format of log output produced by glog library HOT 3
- GLOG_stderrthreshold seems to have no effect HOT 1
- There is no API entry to change the value of "log_prefix"
- Glog Crash on x64 ubuntu HOT 1
- glog crashed on x64 Ubuntu HOT 2
- demangle_unittest.sh fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-glog.