Disable -Werror when using dub?

Brian bcallah at openbsd.org
Tue Apr 6 21:30:04 UTC 2021


Hello --

I may have missed this in the documentation but is it possible to 
turn off -Werror when building with dub+gdc? I want to do some 
debugging and short-circuit some functions with an assert(0) but 
that will flag -Werror on statements being unreachable, which 
coincidentally is exactly what I want.

Thanks!

~Brian


More information about the D.gnu mailing list