-Wold-style-definition to the compilatin flags.
Dotan Barak, dotanba at gmail dot com
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@30
327403b1-1117-474d-bef2-
5cb71233fd97
0.9
+ * Fixed warning reported by adding -Wstrict-prototypes
+ -Wold-style-definition to the compilatin flags.
+ Dotan Barak, dotanba at gmail dot com
* Add const correctness to public interfaces
Gerard Krol, g dot c dot krol at student dot tudelft dot nl
static int _debug = 0;
void mc_set_debug(int debug) { _debug = debug; }
-int mc_get_debug() { return _debug; }
+int mc_get_debug(void) { return _debug; }
extern void mc_set_syslog(int syslog)
{
json_object_generic_delete(this);
}
-struct json_object* json_object_new_object()
+struct json_object* json_object_new_object(void)
{
struct json_object *this = json_object_new(json_type_object);
if(!this) return NULL;
json_object_generic_delete(this);
}
-struct json_object* json_object_new_array()
+struct json_object* json_object_new_array(void)
{
struct json_object *this = json_object_new(json_type_array);
if(!this) return NULL;
};
-struct json_tokener* json_tokener_new()
+struct json_tokener* json_tokener_new(void)
{
struct json_tokener *tok = calloc(1, sizeof(struct json_tokener));
tok->pb = printbuf_new();
#include "debug.h"
#include "printbuf.h"
-struct printbuf* printbuf_new()
+struct printbuf* printbuf_new(void)
{
struct printbuf *p;