Commit 72c0b7d9 authored by Agata Cacko's avatar Agata Cacko

Fix compiler complaints, remove unneeded variable

Before this commit, compiler complained about no return function that
actually is void and a function that has no return value so defaults to
int (but has no return x; at the end). This commit fixes it.

Also it removes XCF_PTR_ERROR.
parent 8c2f93b6
......@@ -26,6 +26,7 @@ const char *progname = "$0" ;
int verboseFlag = 0 ;
void
vFatalGeneric(int status,const char *format,va_list args)
{
if( format ) {
......
......@@ -103,7 +103,6 @@ void free_or_close_xcf(void);
#define XCF_ERROR 1
#define XCF_OK 0
#define XCF_PTR_ERROR (-1)
#define XCF_PTR_EMPTY 0
......@@ -122,7 +121,7 @@ void FatalBadXCF(const char* format,...)
void FatalUnsupportedXCF(const char* format,...)
__ATTRIBUTE__((format(printf,1,2))) ;
void gpl_blurb(void) __ATTRIBUTE__((noreturn));
void gpl_blurb(void);
FILE* openout(const char*);
int closeout(FILE *,const char*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment