From 91d7c5d32f2d6ed070167059d7162cb5fda39b4e Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 22 May 2020 09:50:26 +0200 Subject: [PATCH] Fix compiler warning: old-style function definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nfc-mfclassic.c:623:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] bool is_directwrite() ^~~~~~~~~~~~~~ nfc-mfclassic.c: In function ‘is_directwrite’: nfc-mfclassic.c:623:6: warning: old-style function definition [-Wold-style-definition] --- utils/nfc-mfclassic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index 9c4cb2e..e019ddc 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -620,7 +620,7 @@ print_usage(const char *pcProgramName) } -bool is_directwrite() +bool is_directwrite(void) { printf("Checking if Badge is DirectWrite...\n");