Commit b9feec6b authored by Harald Scheirich's avatar Harald Scheirich
Browse files

Ignore protobuf warnings

parent 6ecaa399
...@@ -93,3 +93,11 @@ add_library_ex(DataModelBindings ...@@ -93,3 +93,11 @@ add_library_ex(DataModelBindings
protobuf::libprotobuf protobuf::libprotobuf
LIB_INSTALL_ONLY LIB_INSTALL_ONLY
) )
if (MSVC)
target_compile_options(DataModelBindings PRIVATE "/wd4100") # 'identifier' : unreferenced formal parameter
target_compile_options(DataModelBindings PRIVATE "/wd4125") # decimal digit terminates octal escape sequence
target_compile_options(DataModelBindings PRIVATE "/wd4127") # conditional expression is constant
target_compile_options(DataModelBindings PRIVATE "/wd4244") # 'conversion' conversion from 'type1' to 'type2', possible loss of data
target_compile_options(DataModelBindings PRIVATE "/wd4267") # 'var' : conversion from 'size_t' to 'type', possible loss of data
endif()
\ No newline at end of file
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#define PUSH_PROTO_WARNINGS() \ #define PUSH_PROTO_WARNINGS() \
__pragma(pack(push)) \ __pragma(pack(push)) \
__pragma(warning(disable:4127)) \ __pragma(warning(disable:4127)) \
__pragma(warning(disable:4244)) \
__pragma(warning(disable:4267)) __pragma(warning(disable:4267))
#define POP_PROTO_WARNINGS() __pragma(pack(pop)) #define POP_PROTO_WARNINGS() __pragma(pack(pop))
#else #else
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
See accompanying NOTICE file for details.*/ See accompanying NOTICE file for details.*/
#include "stdafx.h" #include "stdafx.h"
PUSH_PROTO_WARNINGS()
#include "io/protobuf/PBBlackBox.h" #include "io/protobuf/PBBlackBox.h"
#include "pulse/cdm/bind/BlackBox.pb.h" #include "pulse/cdm/bind/BlackBox.pb.h"
POP_PROTO_WARNINGS()
#include "blackbox/SEBlackBox.h" #include "blackbox/SEBlackBox.h"
const std::string& eBlackBox_Property_Type_Name(eBlackBox_Property_Type m) const std::string& eBlackBox_Property_Type_Name(eBlackBox_Property_Type m)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment