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

Commit 7e9cd8e8 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Chih-hung Hsieh
Browse files

Use -Werror in frameworks/native/opengl/tests

* Remove or comment out unused local variables.
* Remove unused function.
* Cast print argument type to fix format mismatch warning.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I81e80849ac36288932df235cb0d63bd870357d86
parent d3a7a4c6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ cc_test {
        "EGL_test.cpp",
    ],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    shared_libs: [
        "android.hardware.configstore@1.0",
        "android.hardware.configstore-utils",
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ cc_test {
        "demo.c",
    ],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    gtest: false,

    shared_libs: [
+0 −4
Original line number Diff line number Diff line
@@ -62,9 +62,6 @@ using namespace android;

int gAppAlive = 1;

static const char sAppName[] =
        "San Angeles Observation OpenGL ES version example (Linux)";

static int sWindowWidth = WINDOW_DEFAULT_WIDTH;
static int sWindowHeight = WINDOW_DEFAULT_HEIGHT;
static EGLDisplay sEglDisplay = EGL_NO_DISPLAY;
@@ -132,7 +129,6 @@ static int initGraphics(EGLint samples, const WindowSurface& windowSurface)
    EGLContext context;
    EGLConfig config;
    EGLSurface surface;
    EGLint w, h;
    EGLDisplay dpy;

    EGLNativeWindowType window = windowSurface.getSurface();
+5 −0
Original line number Diff line number Diff line
@@ -5,6 +5,11 @@ cc_test {

    srcs: ["configdump.cpp"],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    shared_libs: [
        "libcutils",
        "libEGL",
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@ cc_test {

    srcs: ["fillrate.cpp"],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    gtest: false,

    shared_libs: [
Loading