IVGCVSW-4418 disable unused variable and parameter warning for Caffe protobuf cc
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Fri, 7 Feb 2020 09:46:31 +0000 (09:46 +0000)
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Fri, 7 Feb 2020 14:17:21 +0000 (14:17 +0000)
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I903b75276b0c98894d8116a3d244103a910efa63

CMakeLists.txt

index 3856663..763c07e 100644 (file)
@@ -89,7 +89,7 @@ if(BUILD_CAFFE_PARSER)
         )
     # The generated Caffe protobuf .cc file is not warning clean and we can't fix them.
     if(COMPILER_IS_GNU_LIKE)
-        set_source_files_properties(${CAFFE_GENERATED_SOURCES}/caffe/proto/caffe.pb.cc PROPERTIES COMPILE_FLAGS "-Wno-conversion -Wno-sign-conversion")
+        set_source_files_properties(${CAFFE_GENERATED_SOURCES}/caffe/proto/caffe.pb.cc PROPERTIES COMPILE_FLAGS "-Wno-unused-variable -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion")
     endif()
 
     add_library_ex(armnnCaffeParser SHARED ${armnn_caffe_parser_sources})