Remove -Wno-sign-compare cflag from NNAPI common/
Bug: N/A
Test: mma
Change-Id: Ia32cdae78ee0b30fccee477e19c4d43d6c044e01
diff --git a/common/ValidateHal.cpp b/common/ValidateHal.cpp
index b88c5da..a4c82af 100644
--- a/common/ValidateHal.cpp
+++ b/common/ValidateHal.cpp
@@ -136,7 +136,7 @@
<< "Operand " << index << ": Operand of type "
<< getOperandTypeName(operand.type) << " with a wrong-sized scales, "
<< "expected " << expected << " was " << channelQuant.scales.size();
- NN_RET_CHECK_NE(expected, 0)
+ NN_RET_CHECK_NE(expected, 0u)
<< "Operand " << index << ": Operand of type "
<< getOperandTypeName(operand.type) << " channel dimension "
<< channelQuant.channelDim << " is underspecified (can't be 0)";
@@ -788,7 +788,7 @@
// extension operand type.
if (!isExtensionOperandType(operand.type) &&
!nonExtensionOperandTypeIsScalar(static_cast<int>(operand.type))) {
- NN_RET_CHECK_GT(modelRank, 0)
+ NN_RET_CHECK_GT(modelRank, 0u)
<< "Model " << type << " " << requestArgumentIndex
<< " has unknown rank but the request does not specify the rank.";
}