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
@@ -592,10 +592,9 @@ int main(int argc, char **argv)
|
||||
|
||||
static int real_main(int argc, char **argv)
|
||||
{
|
||||
int i, restart = 0;
|
||||
int i;
|
||||
char *pos;
|
||||
int d, s;
|
||||
int flag;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
wsetabort(wAbort);
|
||||
@@ -603,7 +602,6 @@ static int real_main(int argc, char **argv)
|
||||
/* for telling WPrefs what's the name of the wmaker binary being ran */
|
||||
setenv("WMAKER_BIN_NAME", argv[0], 1);
|
||||
|
||||
flag = 0;
|
||||
ArgCount = argc;
|
||||
Arguments = wmalloc(sizeof(char *) * (ArgCount + 1));
|
||||
for (i = 0; i < argc; i++) {
|
||||
@@ -619,8 +617,6 @@ static int real_main(int argc, char **argv)
|
||||
else
|
||||
ProgName++;
|
||||
|
||||
restart = 0;
|
||||
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
#ifdef USECPP
|
||||
|
||||
Reference in New Issue
Block a user