philsquared/Catch — Issue #63: Avoid warning: "no previous declaration".
Author: helikotrema
Created: 2011-12-15 12:48:21+00:00
State: open

When compiling with g++ 4.4.5 and the -Wmissing-declaration option, there is a warning in catch.hpp:6082 (single_include version):

warning: no previous declaration for ‘void Catch::showHelp(std::string)’

This can be avoided by defining this function "inline".
The surrounding functions are also "inline", so I guess this makes sense.