Merge pull request !94 from zhengyuanhua/developmentpull/94/MERGE
| @@ -48,6 +48,7 @@ add_library(fmk_parser SHARED ${SRC_LIST} ${PROTO_SRCS}) | |||||
| target_compile_options(fmk_parser PRIVATE | target_compile_options(fmk_parser PRIVATE | ||||
| -Werror | -Werror | ||||
| -Wno-deprecated-declarations | |||||
| ) | ) | ||||
| target_compile_definitions(fmk_parser PRIVATE | target_compile_definitions(fmk_parser PRIVATE | ||||
| @@ -32,6 +32,7 @@ add_library(parser_common SHARED ${SRC_LIST}) | |||||
| target_compile_options(parser_common PRIVATE | target_compile_options(parser_common PRIVATE | ||||
| -Werror | -Werror | ||||
| -Wno-deprecated-declarations | |||||
| ) | ) | ||||
| target_compile_definitions(parser_common PRIVATE | target_compile_definitions(parser_common PRIVATE | ||||
| @@ -5,7 +5,7 @@ include $(CLEAR_VARS) | |||||
| LOCAL_MODULE := libparser_common | LOCAL_MODULE := libparser_common | ||||
| LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | ||||
| LOCAL_CFLAGS += -Werror -Dgoogle=ascend_private | |||||
| LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations -Dgoogle=ascend_private | |||||
| ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
| LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
| endif | endif | ||||
| @@ -58,7 +58,7 @@ include $(CLEAR_VARS) | |||||
| LOCAL_MODULE := libfmk_parser | LOCAL_MODULE := libfmk_parser | ||||
| LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | ||||
| LOCAL_CFLAGS += -Werror -Dgoogle=ascend_private | |||||
| LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations -Dgoogle=ascend_private | |||||
| ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
| LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
| endif | endif | ||||
| @@ -18,6 +18,7 @@ add_library(fmk_onnx_parser SHARED ${SRC_LIST} ${PROTO_HDRS}) | |||||
| target_compile_options(fmk_onnx_parser PRIVATE | target_compile_options(fmk_onnx_parser PRIVATE | ||||
| -Werror | -Werror | ||||
| -Wno-deprecated-declarations | |||||
| ) | ) | ||||
| target_compile_definitions(fmk_onnx_parser PRIVATE | target_compile_definitions(fmk_onnx_parser PRIVATE | ||||
| @@ -6,7 +6,7 @@ include $(CLEAR_VARS) | |||||
| LOCAL_MODULE := libfmk_onnx_parser | LOCAL_MODULE := libfmk_onnx_parser | ||||
| LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 | ||||
| LOCAL_CFLAGS += -Werror -Dgoogle=ascend_private | |||||
| LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations -Dgoogle=ascend_private | |||||
| ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
| LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
| endif | endif | ||||