Skip to content

Compiler warnings: -Wreturn-type

Summary

Build generates warnings. This issue is about -Wreturn-type.

Steps to reproduce

Follow the build instructions.

What is the current bug behavior?

Warnings are generated.

What is the expected correct behavior?

Build succeeds without warning.

Relevant logs and/or screenshots

../gemutils/src/soap/GEMSOAPToolBox.cpp: In static member function ‘static std::string gem::utils::soap::GEMSOAPToolBox::getApplicationState(xdaq::ApplicationContext*, xdaq::ApplicationDescriptor*, xdaq::ApplicationDescriptor*)’:
../gemutils/src/soap/GEMSOAPToolBox.cpp:650:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../gemutils/src/soap/GEMSOAPToolBox.cpp: In static member function ‘static std::string gem::utils::soap::GEMSOAPToolBox::getXSDType(const xdata::Serializable&)’:
../gemutils/src/soap/GEMSOAPToolBox.cpp:756:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../gemhardware/devices/src/amc/HwGenericAMC.cpp: In member function ‘int gem::hw::amc::HwGenericAMC::checkPLLLock(uint32_t)’:
../gemhardware/devices/src/amc/HwGenericAMC.cpp:511:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../gemhardware/managers/src/amc13/AMC13Manager.cpp:464:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

Environment

  • Version used: develop
  • Operation System: gem904daq04