本文主要是介绍编译jni提示错误: [-Wunused-parameter] [-Werror,-Wsign-compare] [-Werror,-Wsign-compare],希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
主要错误信息: [-Wunused-parameter] [-Werror,-Wsign-compare] [-Werror,-Wsign-compare]
解决方法:
-Wno- 加上对应的变量或参数类型,即可忽略当前警告,编译通过。
LOCAL_CFLAGS += -Wno-error=date-time
LOCAL_CFLAGS += -Wno-date-time \-Wno-unused-const-variable \-Wno-unused-variable \-Wno-unused-parameter \-Wno-implicit-fallthrough \-Wno-missing-field-initializers \-Wno-format \-Wno-unused-function \-Wno-unused-value \-Wno-constant-logical-operand \-Wno-incompatible-pointer-types \-Wno-switch-bool \-Wno-incompatible-library-redeclaration
这篇关于编译jni提示错误: [-Wunused-parameter] [-Werror,-Wsign-compare] [-Werror,-Wsign-compare]的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!