Switched the #warning messages to #pragma message messages instead, so you can still compile the framework with -Werror switched on
Merge pull request #973 from michael-r-may/master

Fix for -Werror switch use