import std.stdio;

/**
 * The main entry point.
 *
 * Params:
 *     x = command line args.
 */
void main(string[] args)
{
        writeln("hello");
}

Compile with: rdmd -D -w test.d

Output:

test.d(9): Warning: Ddoc: function declaration has no parameter 'x' test.d(9): Warning: Ddoc: function declaration has no parameter 'x'
hello

Using the -w flag, compilation halts on warnings but for ddoc warnings it doesn't. Is this intended behaviour because i find it confusing and inconsistent.

Reply via email to