mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Fixed #46 — added missing option -wi
This commit is contained in:
@@ -202,7 +202,7 @@ struct Param
|
||||
bool useSwitchError; // check for switches without a default
|
||||
bool useUnitTests; // generate unittest code
|
||||
bool useInline; // inline expand functions
|
||||
bool warnings; // enable warnings
|
||||
ubyte warnings; // enable warnings
|
||||
ubyte Dversion; // D version number
|
||||
char enforcePropertySyntax;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ cl::opt<bool> createStaticLib("lib",
|
||||
cl::ZeroOrMore);
|
||||
|
||||
cl::opt<bool> createSharedLib("shared",
|
||||
cl::desc("Create sharedlibrary"),
|
||||
cl::desc("Create shared library"),
|
||||
cl::ZeroOrMore);
|
||||
|
||||
static cl::opt<bool, true> verbose("v",
|
||||
@@ -57,10 +57,15 @@ static cl::opt<bool, true> verbose_cg("v-cg",
|
||||
cl::ZeroOrMore,
|
||||
cl::location(global.params.verbose_cg));
|
||||
|
||||
static cl::opt<bool, true> warnings("w",
|
||||
cl::desc("Enable warnings"),
|
||||
static cl::opt<ubyte, true> warnings(
|
||||
cl::desc("Warnings:"),
|
||||
cl::ZeroOrMore,
|
||||
cl::location(global.params.warnings));
|
||||
cl::values(
|
||||
clEnumValN(1, "w", "Enable warnings"),
|
||||
clEnumValN(2, "wi", "Enable informational warnings"),
|
||||
clEnumValEnd),
|
||||
cl::location(global.params.warnings),
|
||||
cl::init(0));
|
||||
|
||||
static cl::opt<ubyte, true> debugInfo(
|
||||
cl::desc("Generating debug information:"),
|
||||
|
||||
Reference in New Issue
Block a user