Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3e8c527 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: Fix warnings in tests and enable -Werror"

parents e395f0e0 a282f588
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,4 +15,6 @@ LOCAL_MODULE:= test-vsync-events

LOCAL_MODULE_TAGS := tests

LOCAL_CFLAGS := -Werror

include $(BUILD_EXECUTABLE)
+2 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

using namespace android;

int receiver(int fd, int events, void* data)
int receiver(int /*fd*/, int /*events*/, void* data)
{
    DisplayEventReceiver* q = (DisplayEventReceiver*)data;

@@ -47,7 +47,7 @@ int receiver(int fd, int events, void* data)
    return 1;
}

int main(int argc, char** argv)
int main(int /*argc*/, char** /*argv*/)
{
    DisplayEventReceiver myDisplayEvent;

+2 −0
Original line number Diff line number Diff line
@@ -11,4 +11,6 @@ LOCAL_MODULE:= test-waitforvsync

LOCAL_MODULE_TAGS := tests

LOCAL_CFLAGS := -Werror

include $(BUILD_EXECUTABLE)
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
#define FBIO_WAITFORVSYNC   _IOW('F', 0x20, __u32)
#endif

int main(int argc, char** argv) {
int main(int /*argc*/, char** /*argv*/) {
    int fd = open("/dev/graphics/fb0", O_RDWR);
    if (fd >= 0) {
        do {