summaryrefslogtreecommitdiffstats
path: root/lmkd
diff options
context:
space:
mode:
Diffstat (limited to 'lmkd')
-rw-r--r--lmkd/Android.bp11
-rw-r--r--lmkd/lmkd.c4
2 files changed, 3 insertions, 12 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 2efda86cd..9ac082f54 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -7,17 +7,8 @@ cc_binary {
7 "liblog", 7 "liblog",
8 ], 8 ],
9 local_include_dirs: ["include"], 9 local_include_dirs: ["include"],
10 cflags: ["-Werror"], 10 cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
11
12 init_rc: ["lmkd.rc"], 11 init_rc: ["lmkd.rc"],
13
14 product_variables: {
15 debuggable: {
16 cflags: [
17 "-DLMKD_TRACE_KILLS"
18 ],
19 },
20 },
21} 12}
22 13
23cc_library_static { 14cc_library_static {
diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c
index e7c13e0c8..1a14be3e1 100644
--- a/lmkd/lmkd.c
+++ b/lmkd/lmkd.c
@@ -52,8 +52,8 @@
52 52
53#else /* LMKD_TRACE_KILLS */ 53#else /* LMKD_TRACE_KILLS */
54 54
55#define TRACE_KILL_START(pid) 55#define TRACE_KILL_START(pid) ((void)(pid))
56#define TRACE_KILL_END() 56#define TRACE_KILL_END() ((void)0)
57 57
58#endif /* LMKD_TRACE_KILLS */ 58#endif /* LMKD_TRACE_KILLS */
59 59