Bug #725
-DSUPPRESS_WARNINGS is kind of hokey
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
02 Sep 2010
Due date:
% Done:
0%
Estimated time:
1.00 h
Description
I'm having a problem with the -DSUPPRESS_WARNINGS mechanism.
libexiv2 is installed as a system-wide library. But some of my programs need to display warnings and others should not. The -DSUPPRESS_WARNINGS doesn't work with this use case.
Far better than compiling with warning suppression on or not would be to have a way of controlling the printing of warnings of a per-object basis. This could be done by changing the output stream (perhaps the output stream should be a pointer, which is usually &std::cerr but which could be made to be 0 to suppress errors).
Is there any interest in making this change? I would rather not keep my own private copy.
Related issues
History
Updated by Andreas Huggel about 11 years ago
- Status changed from New to Closed