Skip to content

Commit 04a4a69

Browse files
snnnashrit-ms
authored andcommitted
Use onnx_protobuf.h to suppress some GCC warnings (#23453)
### Description Use onnx_protobuf.h to suppress some GCC warnings. All the changes are autogenerated by a shell command. ```bash find . -type f -exec sed -i 's/#include\s\+<onnx\/onnx_pb.h>/#include "core\/graph\/onnx_protobuf.h"/g' {} \; ``` ### Motivation and Context This PR is needed for making vcpkg work(without disabling all warnings) This PR is split from another bigger PR per request from a reviewer.
1 parent 2e3b62b commit 04a4a69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+57
-57
lines changed

include/onnxruntime/core/graph/node_arg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#pragma once
55

6-
#include "onnx/onnx_pb.h"
6+
#include "core/graph/onnx_protobuf.h"
77

88
#include "core/graph/basic_types.h"
99
#include "core/common/status.h"

onnxruntime/core/graph/function_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License.
44

5-
#include "onnx/onnx_pb.h"
5+
#include "core/graph/onnx_protobuf.h"
66

77
namespace onnxruntime {
88

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/LRN_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/batchnorm_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/binary_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/cast_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/clip_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/concat_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

onnxruntime/core/providers/nnapi/nnapi_builtin/builders/impl/conv_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
#include <onnx/onnx_pb.h>
4+
#include "core/graph/onnx_protobuf.h"
55

66
#include "core/common/logging/logging.h"
77
#include "core/common/safeint.h"

0 commit comments

Comments
 (0)