[cfe-dev] -Wno-#warnings, what a funky name

Marc Espie via cfe-dev cfe-dev at lists.llvm.org
Thu Jun 1 02:36:12 PDT 2017


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



More information about the cfe-dev mailing list