diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-09 14:15:25 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-24 12:20:10 -0400 |
commit | feb8ada4ea5540ee986b23abd95597118729704c (patch) | |
tree | f4ab306734939661bccf50f12f294cec2f188e23 | |
parent | 28d213bac4649a1868fa78dab2d3b1ef09235171 (diff) |
perf tools: Remove noise in python version feature test
Now that the feature tests honours the V=1 make verbosity switch, add a
return to the main() routine in the python version test, to avoid this
distraction:
CHK python version
<stdin>: In function 'main':
<stdin>:5: warning: control reaches end of non-void function
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-999no5yxlc2oqo9xjeez5zmv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/config/feature-tests.mak | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak index 3ef5ec9cdff..f5ac77485a4 100644 --- a/tools/perf/config/feature-tests.mak +++ b/tools/perf/config/feature-tests.mak | |||
@@ -121,7 +121,10 @@ define SOURCE_PYTHON_VERSION | |||
121 | #if PY_VERSION_HEX >= 0x03000000 | 121 | #if PY_VERSION_HEX >= 0x03000000 |
122 | #error | 122 | #error |
123 | #endif | 123 | #endif |
124 | int main(void){} | 124 | int main(void) |
125 | { | ||
126 | return 0; | ||
127 | } | ||
125 | endef | 128 | endef |
126 | define SOURCE_PYTHON_EMBED | 129 | define SOURCE_PYTHON_EMBED |
127 | #include <Python.h> | 130 | #include <Python.h> |