SensorEventQueue_test: Fix compiler warnings

Change-Id: I841172e4257f4425dcacbe4984b539b70b8ab1e5
This commit is contained in:
Greg Kaiser
2016-06-30 15:57:04 -07:00
parent 4a8fd563ef
commit dff39d23ec

View File

@@ -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()) {