[dm-devel] [PATCH 15/15] Makefile.inc: Enable -Wextra and -Wformat-nonliteral

Xose Vazquez Perez xose.vazquez at gmail.com
Mon Oct 10 21:51:03 UTC 2016


On 10/10/2016 09:55 PM, Bart Van Assche wrote:

> On 10/10/2016 12:17 PM, Xose Vazquez Perez wrote:
>>
>> With this patch, clang is emitting four new warnings:
>
> -Wformat-nonliteral helped me to catch a real bug. How about suppressing these warnings with a #pragma statement (see also
> http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-via-pragmas)?

I don't know if it's worth pollutes the code to save a pair of clang warnings.




More information about the dm-devel mailing list