D-Programming-Language/dmd — pull request #2755 by rikkimax (2013-11-13 11:56:34+00:00)
Title: Pragma error/warning

With recent activity on DIP 50 I isolated two pragmas to make it work. Here is my attempt at:
pragma(error, "");
and
pragma(warning, "");

These pragma's should hook into compiler's error and warning mechanism already.

As stated on forums there is static assert(0, ""); However that does prepend static assert to the message and has a different purpose I believe.