mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-23 07:12:45 +01:00

* Improve implementation of logging macros. #2331 The GNU compiler emits a warning if nested "if" statements are followed by an "else" statement and braces are not used to explicitly disambiguate the "else" binding. This leads to problems with code like: if (gate) ASSERT_*(condition) << "Some message"; The "switch (0) case 0:" idiom is used to suppress this. * I was wrong. do-while better then switch-case approach for "ambiguous else blocker" https://godbolt.org/z/W5nnYrzx6 * try to fix tabs * again fix tabs * again fix tabs * again fix tabs