From 2862db06721b23ce0b68183ef1f8836e166b4018 Mon Sep 17 00:00:00 2001 From: lwx911747 <1065502523@qq.com> Date: Thu, 11 Mar 2021 11:36:24 +0800 Subject: [PATCH] static check 0311 --- parser/CMakeLists.txt | 1 + parser/func_to_graph/func2graph.py | 2 +- parser/onnx/CMakeLists.txt | 1 + parser/stub/gen_stubapi.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/parser/CMakeLists.txt b/parser/CMakeLists.txt index 4e3d018..83513d8 100644 --- a/parser/CMakeLists.txt +++ b/parser/CMakeLists.txt @@ -139,6 +139,7 @@ add_library(fmk_parser_stub SHARED target_compile_options(fmk_parser_stub PRIVATE -O2 + -fno-common ) target_compile_definitions(fmk_parser_stub PRIVATE diff --git a/parser/func_to_graph/func2graph.py b/parser/func_to_graph/func2graph.py index dcaaf3c..ef52916 100644 --- a/parser/func_to_graph/func2graph.py +++ b/parser/func_to_graph/func2graph.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- #------------------------------------------------------------------- # Purpose: # Copyright 2020 Huawei Technologies Co., Ltd. All rights reserved. diff --git a/parser/onnx/CMakeLists.txt b/parser/onnx/CMakeLists.txt index 65cabae..77cdcf1 100644 --- a/parser/onnx/CMakeLists.txt +++ b/parser/onnx/CMakeLists.txt @@ -104,6 +104,7 @@ add_library(fmk_onnx_parser_stub SHARED target_compile_options(fmk_onnx_parser_stub PRIVATE -O2 + -fno-common ) target_compile_definitions(fmk_onnx_parser_stub PRIVATE diff --git a/parser/stub/gen_stubapi.py b/parser/stub/gen_stubapi.py index 94db770..9319f3f 100644 --- a/parser/stub/gen_stubapi.py +++ b/parser/stub/gen_stubapi.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- #------------------------------------------------------------------- # Purpose: # Copyright 2020 Huawei Technologies Co., Ltd. All rights reserved.