ref: ba314d16e7845b5c24be053ef6d8255e4ce86e14
parent: 47d8a840c045a43ca2693844caa629ebee39599e
author: Martin Storsjö <martin@martin.st>
date: Wed Dec 31 12:07:36 EST 2014
Add void to the parameter list of WelsGetCodecVersion When the header is used from C instead of C++, an empty parameter list means that it can take any number of parameters, and can cause warnings like "function declaration isn’t a prototype" with some C compilers. Clarify this by explicitly adding void to this function.
--- a/codec/api/svc/codec_api.h
+++ b/codec/api/svc/codec_api.h
@@ -534,7 +534,7 @@
/** @brief Get codec version
* @return The linked codec version
*/
-OpenH264Version WelsGetCodecVersion ();
+OpenH264Version WelsGetCodecVersion (void);
#ifdef __cplusplus
}