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

Commit 1642dc68 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Use -Werror in frameworks/native/cmds

* Remove unused variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ifde10b651abbdb2ab1e236ebe47e25bf6c4c9b23
parent 5be02d66
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@ LOCAL_SRC_FILES:= \
    Renderers.cpp   \
    Main.cpp        \

LOCAL_CFLAGS := -Wall -Werror

LOCAL_MODULE:= flatland

LOCAL_MODULE_TAGS := tests
+0 −5
Original line number Diff line number Diff line
@@ -284,7 +284,6 @@ class Layer {
public:

    Layer() :
        mFirstFrame(true),
        mGLHelper(NULL),
        mSurface(EGL_NO_SURFACE) {
    }
@@ -358,8 +357,6 @@ public:
    }

private:
    bool mFirstFrame;

    LayerDesc mDesc;

    GLHelper* mGLHelper;
@@ -389,7 +386,6 @@ public:
        ATRACE_CALL();

        bool result;
        EGLint resulte;

        float scaleFactor = float(mDesc.runHeights[mInstance]) /
            float(mDesc.height);
@@ -465,7 +461,6 @@ public:
        ATRACE_CALL();

        bool result;
        status_t err;

        resetColorGenerator();

+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := ip-up-vpn.c
LOCAL_CFLAGS := -Wall -Werror
LOCAL_SHARED_LIBRARIES := libcutils liblog
LOCAL_MODULE := ip-up-vpn
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/ppp
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ include $(CLEAR_VARS)

LOCAL_SRC_FILES:= backup.cpp

LOCAL_CFLAGS := -Wall -Werror

LOCAL_SHARED_LIBRARIES := libcutils libc

LOCAL_MODULE:= rawbu
+0 −1
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@ static int wipe (const char *path)
        }

        if(S_ISDIR(statBuffer.st_mode)) {
            int i;
            char *newpath;

            newpath = strdup(nameBuffer);