mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
Remove compiler warnings in defaults.c
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)
This commit is contained in:
committed by
Carlos R. Mafra
parent
4989097049
commit
761f3c6e85
@@ -2032,6 +2032,8 @@ static int getFont(WScreen * scr, WDefaultEntry * entry, WMPropList * value, voi
|
|||||||
static WMFont *font;
|
static WMFont *font;
|
||||||
const char *val;
|
const char *val;
|
||||||
|
|
||||||
|
(void) addr;
|
||||||
|
|
||||||
GET_STRING_OR_DEFAULT("Font", val);
|
GET_STRING_OR_DEFAULT("Font", val);
|
||||||
|
|
||||||
font = WMCreateFont(scr->wmscreen, val);
|
font = WMCreateFont(scr->wmscreen, val);
|
||||||
@@ -2058,6 +2060,8 @@ static int getColor(WScreen * scr, WDefaultEntry * entry, WMPropList * value, vo
|
|||||||
const char *val;
|
const char *val;
|
||||||
int second_pass = 0;
|
int second_pass = 0;
|
||||||
|
|
||||||
|
(void) addr;
|
||||||
|
|
||||||
GET_STRING_OR_DEFAULT("Color", val);
|
GET_STRING_OR_DEFAULT("Color", val);
|
||||||
|
|
||||||
again:
|
again:
|
||||||
|
|||||||
Reference in New Issue
Block a user