[PATCH:xts 05/16] xts5: Fix missing type specifier.

Cyril Brulebois kibi at debian.org
Wed May 25 04:00:14 PDT 2011


The following warnings go away accordingly:
|   CC     checkfont.lo
| checkfont.c:155:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
| static check1prop(XFontStruct *fsp, XFontProp *fp, char *str);
| ~~~~~~ ^
| checkfont.c:451:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
| check1prop(fsp, fp, str)
| ^

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 xts5/src/lib/checkfont.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/xts5/src/lib/checkfont.c b/xts5/src/lib/checkfont.c
index f2c5498..e1c5624 100644
--- a/xts5/src/lib/checkfont.c
+++ b/xts5/src/lib/checkfont.c
@@ -152,11 +152,11 @@ int 	nfontinfo = NELEM(fontinfo);
 #ifdef __STDC__
 static int checkprops(XFontStruct *fsp, XFontStruct *good, char *str);
 static XCharStruct *getmetric(XFontStruct *fsp, unsigned int c);
-static check1prop(XFontStruct *fsp, XFontProp *fp, char *str);
+static int check1prop(XFontStruct *fsp, XFontProp *fp, char *str);
 #else
 static int checkprops();
 static XCharStruct *getmetric();
-static check1prop();
+static int check1prop();
 #endif
 
 /*
@@ -447,7 +447,7 @@ int 	pass = 0, fail = 0;
 /*
  * Check a single property
  */
-static
+static int
 check1prop(fsp, fp, str)
 XFontStruct	*fsp;
 XFontProp	*fp;
-- 
1.7.5.1



More information about the xorg-devel mailing list