This happens whenever in a macro you use some "if" block, and don't use curly braces {},
as the macro is expanded on a single line, not on several lines. So just add the missing
curly braces to please gcc.
In file included from /remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/yaml.h:18,
from src/TestYaml.cpp:2:
/remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/node/convert.h: In static member function static bool YAML::convert<int>::decode(const YAML::Node&, int&):
/remote/users/mlamesch/CloneFromPlatinum/yamlcpp/osp/Yamlcpp/18-0-0-5/include/yaml-cpp/node/convert.h:139:1: error: this if clause does not guard... [-Werror=misleading-indentation]
YAML_DEFINE_CONVERT_STREAMABLE_SIGNED(int);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|---|---|---|
| .. | ||
| contrib | ||
| node | ||
| anchor.h | ||
| binary.h | ||
| dll.h | ||
| emitfromevents.h | ||
| emitter.h | ||
| emitterdef.h | ||
| emittermanip.h | ||
| emitterstyle.h | ||
| eventhandler.h | ||
| exceptions.h | ||
| mark.h | ||
| null.h | ||
| ostream_wrapper.h | ||
| parser.h | ||
| stlemitter.h | ||
| traits.h | ||
| yaml.h | ||