aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2015-10-19 07:22:53 +0200
committerMax Weffers <rcstar6696@gmail.com>2017-01-30 15:44:15 +0100
commit8d26c6bb8e942d95bd231bf705840d1737569391 (patch)
tree016096319f21dff9f0e7a2e1ec54811c4cb45157
parent23d0e343c3f7bc0368947d6c92d825a44c166350 (diff)
Build init as C++
Change-Id: Ie6212aa11d542a3b42a6be0ac21e48d1b400c177 Signed-off-by: Chirayu Desai <chirayudesai1@gmail.com>
-rw-r--r--init/Android.mk2
-rw-r--r--init/init_shinano.cpp (renamed from init/init_shinano.c)2
2 files changed, 2 insertions, 2 deletions
diff --git a/init/Android.mk b/init/Android.mk
index 0e8d85a..b76d2d7 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -6,7 +6,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := system/core/init
LOCAL_CFLAGS := -Wall
-LOCAL_SRC_FILES := init_shinano.c
+LOCAL_SRC_FILES := init_shinano.cpp
LOCAL_MODULE := libinit_shinano
include $(BUILD_STATIC_LIBRARY)
diff --git a/init/init_shinano.c b/init/init_shinano.cpp
index e278a41..e9ed00b 100644
--- a/init/init_shinano.c
+++ b/init/init_shinano.cpp
@@ -24,7 +24,7 @@
#include <sys/system_properties.h>
-static void import_kernel_nv(char *name)
+static void import_kernel_nv(char *name, __attribute__((unused)) bool foo)
{
char *value = strchr(name, '=');
int name_len = strlen(name);