diff --git a/dmd2/mars.h b/dmd2/mars.h index 0a01036e..ad612f06 100644 --- a/dmd2/mars.h +++ b/dmd2/mars.h @@ -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; diff --git a/gen/cl_options.cpp b/gen/cl_options.cpp index eef2d9a9..806a4bd3 100644 --- a/gen/cl_options.cpp +++ b/gen/cl_options.cpp @@ -44,7 +44,7 @@ cl::opt createStaticLib("lib", cl::ZeroOrMore); cl::opt createSharedLib("shared", - cl::desc("Create sharedlibrary"), + cl::desc("Create shared library"), cl::ZeroOrMore); static cl::opt verbose("v", @@ -57,10 +57,15 @@ static cl::opt verbose_cg("v-cg", cl::ZeroOrMore, cl::location(global.params.verbose_cg)); -static cl::opt warnings("w", - cl::desc("Enable warnings"), +static cl::opt 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 debugInfo( cl::desc("Generating debug information:"),