OSDN Git Service

tracetool: report error on foo() instead of foo(void)
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 10 Jan 2018 20:25:53 +0000 (20:25 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 29 Jan 2018 10:34:55 +0000 (10:34 +0000)
commit24f4d3d3aeabf83445839099d6d66cbb3089c37a
treec1a40c2b92e2890163be8553e11274d27b4eb1e0
parent6e497fa1b12bbb28388f9c19e15a36d68f826f4a
tracetool: report error on foo() instead of foo(void)

C functions with no arguments must be declared foo(void) instead of
foo().  The tracetool argument list parser has never accepted an empty
argument list.  This patch adds a clear error message for this error
case.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180110202553.31889-4-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/__init__.py