SensorEventQueue_test: Fix compiler warnings
Change-Id: I841172e4257f4425dcacbe4984b539b70b8ab1e5
This commit is contained in:
@@ -32,7 +32,7 @@ bool checkSize(SensorEventQueue* queue, int expected) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool checkInt(char* msg, int expected, int actual) {
|
||||
bool checkInt(const char* msg, int expected, int actual) {
|
||||
if (actual != expected) {
|
||||
printf("%s; expected %d; actual was %d\n", msg, expected, actual);
|
||||
return false;
|
||||
@@ -187,7 +187,7 @@ bool testFullQueueIo() {
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int main(int argc __attribute((unused)), char **argv __attribute((unused))) {
|
||||
if (testSimpleWriteSizeCounts() &&
|
||||
testWrappingWriteSizeCounts() &&
|
||||
testFullQueueIo()) {
|
||||
|
||||
Reference in New Issue
Block a user