Hi,
I'm trying to build Poco 1.4.5 using -pedantic (or actually -pedantic-errors), and I have problems with some pre-processor macros in Foundation/include/Poco/Exception.h. Seems that a define here causes problems (compiler complains about empty macro arguments which is undefined behavior on C90/C++98 I think).
This code compiles (not sure if it's correct but initial tests seems to work) with GCC 4.3.4 but not GCC 4.4.2.
#define POCO_DECLARE_EXCEPTION(API, CLS, BASE) \
POCO_DECLARE_EXCEPTION_CODE(API, CLS, BASE, 0)
I tried to skip this the POCO_DECLARE_EXCEPTION wrapper macro and use the _CODE directly in all the places where this macro is used, which silences the compiler but I'm not sure if this is the correct way of solving it. I cannot remove -pedantic or bump the C++ standard used when compiling so I have to solve this in Poco I assume. Any pointers are appreciated, cheers.





