From 43ce67a5aab1b7a1b5bfda9402c4d87a8bc8fcdd Mon Sep 17 00:00:00 2001 From: Andrey Mazo Date: Tue, 13 Mar 2018 20:22:17 +0300 Subject: [PATCH] unset_trace.[ch]: fix prototype warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warnings with gcc-5.4: unset_trace.h:1:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void unset_trace(); ^ unset_trace.c:5:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void unset_trace() { ^ --- unset_trace.c | 2 +- unset_trace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unset_trace.c b/unset_trace.c index 68deb15..df10676 100644 --- a/unset_trace.c +++ b/unset_trace.c @@ -2,6 +2,6 @@ #include "Python.h" -void unset_trace() { +void unset_trace(void) { PyEval_SetTrace(NULL, NULL); } diff --git a/unset_trace.h b/unset_trace.h index 03df5d8..59cf13c 100644 --- a/unset_trace.h +++ b/unset_trace.h @@ -1 +1 @@ -void unset_trace(); +void unset_trace(void);