mirror of
https://github.com/eclipse/upm.git
synced 2025-10-29 22:24:48 +03:00
Werror: Enable warnings as errors
Added C/CXX warning messages similar to MRAA (w/ -Werror).
* Added syslog warning for missing switch cases
* Cleaned up uint vs int usage
* Fixed redifinition errors for C structs
* Added virtual destructors for base classes
* Removed redundant CMAKE_CXX_FLAGS from COMPILE_FLAGS for all three
wrapper languages. The CMAKE_CXX_FLAGS were showing up twice in
the compile commands for the wrappers.
* Added CMake WERROR option to enable/disable warnings as errors for
all targets.
* Disable a handful of compiler warnings for the wrapper cxx files,
this minimizes the number of warnings from auto-generated code).
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <syslog.h>
|
||||
|
||||
#include "bacnetmstp.hpp"
|
||||
#include "handlers.h"
|
||||
@@ -503,8 +504,10 @@ bool BACNETMSTP::dispatchRequest()
|
||||
<< (int)m_invokeID << endl;
|
||||
|
||||
break;
|
||||
default:
|
||||
syslog(LOG_WARNING, "%s: switch case not defined",
|
||||
std::string(__FUNCTION__).c_str());
|
||||
}
|
||||
|
||||
}
|
||||
else if (tsm_invoke_id_free(m_invokeID))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user