From ba97505efc8fbe942fdc23a7a67cff2cf908fa9c Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 5 Sep 2015 15:58:56 +0200 Subject: [PATCH] (void) and () empty arguments are different in C. This fixes the following warning when including uchardet.h in C source, built with -Wstrict-prototypes: `uchardet.h:52:1: warning: function declaration isn't a prototype` --- src/uchardet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uchardet.cpp b/src/uchardet.cpp index 74ab63c..cc85f25 100644 --- a/src/uchardet.cpp +++ b/src/uchardet.cpp @@ -73,7 +73,7 @@ public: } }; -uchardet_t uchardet_new() +uchardet_t uchardet_new(void) { return reinterpret_cast (new HandleUniversalDetector()); }