[cfe-dev] -Wno-#warnings, what a funky name
David Blaikie via cfe-dev
cfe-dev at lists.llvm.org
Thu Jun 1 08:16:33 PDT 2017
Looks like the GCC version of this warning is spelled:
-Wno-cpp
(C, Objective-C, C++, Objective-C++ and Fortran only)
Suppress warning messages emitted by #warning directives.
Perhaps we could/should provide a matching alias.
On Thu, Jun 1, 2017 at 2:37 AM Marc Espie via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Have you ever tried passing that option through any kind of configure
> mechanism on a Unix-like system ?
>
> You can expect hilarious results.
>
> - make needs quoting twice, as # is a comment, e.g., you need something
> like
>
> CFLAGS = '-Wno-\#warnings'
>
> - I still haven't the faintest idea how you're supposed to pass it thru
> a configure script without getting any hilarious errors.
>
>
> Could it be considered having an alternative name for that option, like
> -Wno-sharp-warnings, just so that people actually wanting to use it
> can have a less painful life ?
>
>
> --
> Marc Espie
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170601/21b861c0/attachment.html>
More information about the cfe-dev
mailing list