From f463e180e5a69b4a43acd41c41c8518fa8c22b2d Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 5 Dec 2017 10:20:12 -0800 Subject: Use -Werror in frameworks/native/cmds/cmd * Ignore return value of getfilecon? Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I341e6047dbb5b49a92f69df74b073d2f54a7754d --- cmds/cmd/cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/cmd/cmd.cpp') diff --git a/cmds/cmd/cmd.cpp b/cmds/cmd/cmd.cpp index 6511b446c1..48d5d4aed7 100644 --- a/cmds/cmd/cmd.cpp +++ b/cmds/cmd/cmd.cpp @@ -104,7 +104,7 @@ public: if (is_selinux_enabled() && seLinuxContext.size() > 0) { String8 seLinuxContext8(seLinuxContext); security_context_t tmp = NULL; - int ret = getfilecon(fullPath.string(), &tmp); + getfilecon(fullPath.string(), &tmp); Unique_SecurityContext context(tmp); if (checkWrite) { int accessGranted = selinux_check_access(seLinuxContext8.string(), context.get(), -- cgit v1.2.3-59-g8ed1b