diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-30 15:52:16 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-05-05 10:30:05 -0700 |
commit | c9303f317562eb1cad5dd27a99a97f85b5acf136 (patch) | |
tree | 2104cd294a22ed6f1a147f4a30292c20bfccb7c2 /netcfg | |
parent | cc209517e45346ea30d88ce9274dbb6ff1649914 (diff) | |
download | core-c9303f317562eb1cad5dd27a99a97f85b5acf136.tar.gz core-c9303f317562eb1cad5dd27a99a97f85b5acf136.tar.bz2 core-c9303f317562eb1cad5dd27a99a97f85b5acf136.zip |
netcfg: turn on -Werror
- resolve unused variable reference
Change-Id: If725a1cb0ee645c6e379c9ce21ab8c40bc4cd554
Diffstat (limited to 'netcfg')
-rw-r--r-- | netcfg/Android.mk | 1 | ||||
-rw-r--r-- | netcfg/netcfg.c | 13 |
2 files changed, 5 insertions, 9 deletions
diff --git a/netcfg/Android.mk b/netcfg/Android.mk index 949f41728..fc01a5464 100644 --- a/netcfg/Android.mk +++ b/netcfg/Android.mk @@ -11,6 +11,7 @@ LOCAL_MODULE:= netcfg #LOCAL_STATIC_LIBRARIES := libcutils libc LOCAL_SHARED_LIBRARIES := libc libnetutils +LOCAL_CFLAGS := -Werror include $(BUILD_EXECUTABLE) endif diff --git a/netcfg/netcfg.c b/netcfg/netcfg.c index 3738f2495..2308f37b5 100644 --- a/netcfg/netcfg.c +++ b/netcfg/netcfg.c @@ -1,5 +1,4 @@ -/* system/bin/netcfg/netcfg.c -** +/* ** Copyright 2006, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,18 +14,14 @@ ** limitations under the License. */ -#include <stdio.h> -#include <stdlib.h> #include <errno.h> #include <dirent.h> #include <netinet/ether.h> #include <netinet/if_ether.h> - -#include <netutils/ifc.h> #include <netutils/dhcp.h> - -static int verbose = 0; - +#include <netutils/ifc.h> +#include <stdio.h> +#include <stdlib.h> void die(const char *reason) { |