Avoid the gcc warning ../../libXpm-3.5.7/cxpm/cxpm.c:102: warning: no previous prototype for 'ErrorMessage' There are still quite a few warnings function declaration isn't a prototype libXpm is one of the libraries that still could need ANSIfication, I'd offer some help if you tell me to do so. diff -ur libXpm-3.5.7.orig/cxpm/cxpm.c libXpm-3.5.7/cxpm/cxpm.c --- libXpm-3.5.7.orig/cxpm/cxpm.c 2007-06-27 22:39:29.000000000 +0200 +++ libXpm-3.5.7/cxpm/cxpm.c 2008-10-03 17:17:25.000000000 +0200 @@ -94,7 +94,7 @@ #include "Attrib.c" #include "Image.c" -void +static void ErrorMessage( int ErrorStatus, xpmData *data)