summaryrefslogtreecommitdiffstats
path: root/getaddr.c
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-03-10 16:33:22 +0900
committerLorenzo Colitti <lorenzo@google.com>2014-03-10 16:40:30 +0900
commit56ec161d47856212008f47676577882f30853312 (patch)
treea0d067456309956aa7bdfb4a66dd0e36ae7e55de /getaddr.c
parentd6c9bc21e673110aec61157419964b2e57c16078 (diff)
downloadandroid_external_android-clat-56ec161d47856212008f47676577882f30853312.tar.gz
android_external_android-clat-56ec161d47856212008f47676577882f30853312.tar.bz2
android_external_android-clat-56ec161d47856212008f47676577882f30853312.zip
Mark unused parameters and set -Wunused-parameter
This allows us to compile with -Wall -Werror in build environments where -Wall also warns about unused parameters. Also explicitly set -Wunused-parameter so unused parameters will cause the build to fail in environments where -Wall does not warn about them. Change-Id: Icccf2121d2a9df77b1c224c4976cb9aec56496b3
Diffstat (limited to 'getaddr.c')
-rw-r--r--getaddr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/getaddr.c b/getaddr.c
index fb761f0..5cae78b 100644
--- a/getaddr.c
+++ b/getaddr.c
@@ -85,7 +85,9 @@ static int getaddr_cb(struct nl_msg *msg, void *data) {
* err - netlink message
* arg - (struct target) info for which address we're looking for
*/
-static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err, void *arg) {
+static int error_handler(__attribute__((unused)) struct sockaddr_nl *nla,
+ __attribute__((unused)) struct nlmsgerr *err,
+ __attribute__((unused)) void *arg) {
return NL_OK;
}