Skip to content

Commit

Permalink
Silence build warnings in tflite
Browse files Browse the repository at this point in the history
Silence build warnings in tflite
  • Loading branch information
erikmchut authored Apr 2, 2020
1 parent 9f67747 commit 26dfffb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tensorflow/lite/build_def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def tflite_copts():
"/wd4018", # -Wno-sign-compare
],
"//conditions:default": [
"-Wno-deprecated-declarations",
"-Wno-sign-compare",
"-Wno-unused-const-variable",
"-Wno-unused-function",
],
}) + select({
clean_dep("//tensorflow:optimized"): ["-O3"],
Expand Down
3 changes: 3 additions & 0 deletions tensorflow/lite/delegates/nnapi/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ cc_library(
"nnapi_delegate.h",
"nnapi_delegate_kernel.h",
],
copts = [
"-Wno-unused-private-field",
],
deps = [
"//tensorflow/lite:allocation",
"//tensorflow/lite:kernel_api",
Expand Down
5 changes: 4 additions & 1 deletion tensorflow/lite/kernels/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ cc_library(
"optimized/neon_tensor_utils.h",
"optimized/neon_tensor_utils_impl.h",
],
copts = NEON_FLAGS_IF_APPLICABLE + HARD_FP_FLAGS_IF_APPLICABLE,
copts = NEON_FLAGS_IF_APPLICABLE + HARD_FP_FLAGS_IF_APPLICABLE + [
"-Wno-deprecated-declarations",
"-Wno-unused-function",
],
deps = [
":common",
":compatibility",
Expand Down

0 comments on commit 26dfffb

Please sign in to comment.