mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove warnings
* Remove assigned but not used variables (GCC 4.6) * Bump _XOPEN_SOURCE to 600, ridding of FreeBSD warnings (this probably need to be tweaked on a per-implementation basis as problems arise)
This commit is contained in:
committed by
Carlos R. Mafra
parent
43c7abe79f
commit
f65b99e615
@@ -29,6 +29,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
#include <dirent.h>
|
||||
@@ -1151,7 +1152,7 @@ static WMenu *readMenuFile(WScreen * scr, char *file_name)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CPP
|
||||
#ifdef USECPP
|
||||
if (cpp) {
|
||||
if (pclose(file) == -1) {
|
||||
werror(_("error reading preprocessed menu data"));
|
||||
@@ -1183,7 +1184,6 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name)
|
||||
int i;
|
||||
#ifdef USECPP
|
||||
char *args;
|
||||
int cpp = 0;
|
||||
#endif
|
||||
|
||||
flat_file[0] = '\0';
|
||||
@@ -1206,8 +1206,6 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name)
|
||||
file = popen(command, "r");
|
||||
if (!file) {
|
||||
werror(_("%s:could not open/preprocess menu file"), filename);
|
||||
} else {
|
||||
cpp = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user