From: Xose Vazquez Perez Subject: Re: [PATCH 15/15] Makefile.inc: Enable -Wextra and -Wformat-nonliteral Date: Mon, 10 Oct 2016 23:51:03 +0200 Message-ID: <31744465-5fec-9eb8-760d-9fe55e2707af@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Bart Van Assche , device-mapper development List-Id: dm-devel.ids 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.