Skip to content

Commit 26dfffb

Browse files
authored
Silence build warnings in tflite
Silence build warnings in tflite
1 parent 9f67747 commit 26dfffb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

tensorflow/lite/build_def.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def tflite_copts():
2424
"/wd4018", # -Wno-sign-compare
2525
],
2626
"//conditions:default": [
27+
"-Wno-deprecated-declarations",
2728
"-Wno-sign-compare",
29+
"-Wno-unused-const-variable",
30+
"-Wno-unused-function",
2831
],
2932
}) + select({
3033
clean_dep("//tensorflow:optimized"): ["-O3"],

tensorflow/lite/delegates/nnapi/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ cc_library(
2626
"nnapi_delegate.h",
2727
"nnapi_delegate_kernel.h",
2828
],
29+
copts = [
30+
"-Wno-unused-private-field",
31+
],
2932
deps = [
3033
"//tensorflow/lite:allocation",
3134
"//tensorflow/lite:kernel_api",

tensorflow/lite/kernels/internal/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,10 @@ cc_library(
565565
"optimized/neon_tensor_utils.h",
566566
"optimized/neon_tensor_utils_impl.h",
567567
],
568-
copts = NEON_FLAGS_IF_APPLICABLE + HARD_FP_FLAGS_IF_APPLICABLE,
568+
copts = NEON_FLAGS_IF_APPLICABLE + HARD_FP_FLAGS_IF_APPLICABLE + [
569+
"-Wno-deprecated-declarations",
570+
"-Wno-unused-function",
571+
],
569572
deps = [
570573
":common",
571574
":compatibility",

0 commit comments

Comments
 (0)