From: H.G. Muller Date: Mon, 23 May 2011 17:03:56 +0000 (+0200) Subject: Fix ArgTwo warnings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ebb6e4a9f6fe488a380cbc10b28d407c140237b4;p=xboard.git Fix ArgTwo warnings --- diff --git a/args.h b/args.h index 69c1b12..2d1e8c3 100644 --- a/args.h +++ b/args.h @@ -1066,6 +1066,7 @@ ParseArgs(GetFunc get, void *cl) case ArgNone: ExitArgError("Unrecognized argument", argValue); break; + case ArgTwo: case ArgTrue: case ArgFalse: ; } @@ -1162,6 +1163,7 @@ SetDefaultsFromList() if(argDescriptors[i].defaultValue != INVALID) switch(argDescriptors[i].argType) { case ArgBoolean: + case ArgTwo: case ArgTrue: case ArgFalse: *(Boolean *) argDescriptors[i].argLoc = (int)(intptr_t)argDescriptors[i].defaultValue; @@ -1427,6 +1429,7 @@ SaveSettings(char* name) break; case ArgCommSettings: PrintCommPortSettings(f, ad->argName); + case ArgTwo: case ArgNone: case ArgSettingsFilename: ; }