From 761f3c6e8560e4cda644427e9167265be54981f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Fri, 31 Jan 2014 20:08:01 +0100 Subject: [PATCH] Remove compiler warnings in defaults.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes these warnings: defaults.c: In function ‘getFont’: defaults.c:2011:84: warning: unused parameter ‘addr’ [-Wunused-parameter] static int getFont(WScreen * scr, WDefaultEntry * entry, WMPropList * value, void *addr, void **ret) ^ defaults.c: In function ‘getColor’: defaults.c:2036:85: warning: unused parameter ‘addr’ [-Wunused-parameter] static int getColor(WScreen * scr, WDefaultEntry * entry, WMPropList * value, void *addr, void **ret) --- src/defaults.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/defaults.c b/src/defaults.c index 5bf82672..c5fd853c 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -2032,6 +2032,8 @@ static int getFont(WScreen * scr, WDefaultEntry * entry, WMPropList * value, voi static WMFont *font; const char *val; + (void) addr; + GET_STRING_OR_DEFAULT("Font", val); font = WMCreateFont(scr->wmscreen, val); @@ -2058,6 +2060,8 @@ static int getColor(WScreen * scr, WDefaultEntry * entry, WMPropList * value, vo const char *val; int second_pass = 0; + (void) addr; + GET_STRING_OR_DEFAULT("Color", val); again: