perf tools: Substract -Wformat-nonliteral from Wformat=2 in extra flags
commit0d31b82dd5c54a0b1e1d789427abdcc180bc4602
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 16 Aug 2009 15:52:07 +0000 (16 17:52 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Aug 2009 15:56:09 +0000 (16 17:56 +0200)
tree4d9aa084b8e1c0ca3138d5bc6638073a44564b93
parent35ba15b737e2cd1d780943189f2138519f81fd42
perf tools: Substract -Wformat-nonliteral from Wformat=2 in extra flags

The soon coming perf trace needs to use printf with dynamically
built formats.

But we are using -Wformat=2 which is a shortcut for the
following set: -Wformat -Wformat-security -Wformat-y2k
-Wformat-nonliteral

-Wformat-nonliteral warns when it can't check formats because
they are not builtin constant strings, but we want to feature
dynamic formats. What we want instead is Wformat=2 minus
-Wformat-nonliteral, which is what this patch does.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1250437927-25490-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Makefile