Skip to content

Fix compiler warnings related to `extern "C"`

Fix warnings like:

/Gaudi/GaudiUtils/src/component/XMLCatalogTest.cpp:19:16: warning: 'main' should not be 'extern "C"' [-Wmain]
   19 | extern "C" int testXMLFileCatalogWrite( int argc, char** argv ) {
      |                ^
<command line>:17:33: note: expanded from macro 'testXMLFileCatalogWrite'
   17 | #define testXMLFileCatalogWrite main
      |                                 ^
1 warning generated.

that I get when compiling with Clang 20.

Merge request reports

Loading