diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-29 15:49:14 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-05-01 17:58:17 -0700 |
commit | 12717169a51335f4b20b7c78a63b9ab66a81a366 (patch) | |
tree | 577dfc1bf9eecdb360e46a63d14de1caeca38a0d /libcutils/process_name.c | |
parent | 3754791dd5415c2e99d3bfd6599d414a202cbfc3 (diff) | |
download | core-12717169a51335f4b20b7c78a63b9ab66a81a366.tar.gz core-12717169a51335f4b20b7c78a63b9ab66a81a366.tar.bz2 core-12717169a51335f4b20b7c78a63b9ab66a81a366.zip |
libcutils: turn on -Werror
- Deal with some -Wunused / -Wunused-variable issues
Change-Id: I28c23fb213382a392ec30935749fb359e072d664
Diffstat (limited to 'libcutils/process_name.c')
-rw-r--r-- | libcutils/process_name.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libcutils/process_name.c b/libcutils/process_name.c index a6ab951b7..9c3dfb8d2 100644 --- a/libcutils/process_name.c +++ b/libcutils/process_name.c @@ -14,25 +14,27 @@ * limitations under the License. */ +#include <fcntl.h> #include <stdlib.h> #include <string.h> -#include <cutils/process_name.h> -#ifdef HAVE_ANDROID_OS -#include <cutils/properties.h> +#if defined(HAVE_PRCTL) +#include <sys/prctl.h> #endif -#include <unistd.h> -#include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> +#include <sys/types.h> +#include <unistd.h> -#if defined(HAVE_PRCTL) -#include <sys/prctl.h> +#include <cutils/process_name.h> +#ifdef HAVE_ANDROID_OS +#include <cutils/properties.h> #endif #define PROCESS_NAME_DEVICE "/sys/qemu_trace/process_name" static const char* process_name = "unknown"; +#ifdef HAVE_ANDROID_OS static int running_in_emulator = -1; +#endif void set_process_name(const char* new_name) { #ifdef HAVE_ANDROID_OS |