From ebb6e4a9f6fe488a380cbc10b28d407c140237b4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 23 May 2011 19:03:56 +0200 Subject: [PATCH] Fix ArgTwo warnings --- args.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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: ; } -- 1.7.0.4