(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`
This commit is contained in:
Jehan 2015-09-05 15:58:56 +02:00
parent 84e292d1b9
commit ba97505efc

View File

@ -73,7 +73,7 @@ public:
} }
}; };
uchardet_t uchardet_new() uchardet_t uchardet_new(void)
{ {
return reinterpret_cast<uchardet_t> (new HandleUniversalDetector()); return reinterpret_cast<uchardet_t> (new HandleUniversalDetector());
} }