provide full prototypes for some functions with no arguments
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 9 Sep 2011 15:40:06 +0000 (17:40 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 9 Sep 2011 15:40:06 +0000 (17:40 +0200)
Reported-by: Zbigniew Chamski <zbigniew.chamski@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/isl/arg.h
include/isl/blk.h
include/isl/ctx.h

index d37e495..c05885e 100644 (file)
@@ -255,7 +255,7 @@ int isl_arg_parse(struct isl_arg *arg, int argc, char **argv, void *opt,
 
 #define ISL_ARG_DECL(prefix,st,arg)                                    \
 extern struct isl_arg arg[];                                           \
-st *prefix ## _new_with_defaults();                                    \
+st *prefix ## _new_with_defaults(void);                                        \
 void prefix ## _free(st *opt);                                         \
 int prefix ## _parse(st *opt, int argc, char **argv, unsigned flags);
 
index 8094e2a..690a872 100644 (file)
@@ -26,7 +26,7 @@ struct isl_blk {
 struct isl_ctx;
 
 struct isl_blk isl_blk_alloc(struct isl_ctx *ctx, size_t n);
-struct isl_blk isl_blk_empty();
+struct isl_blk isl_blk_empty(void);
 int isl_blk_is_error(struct isl_blk block);
 struct isl_blk isl_blk_extend(struct isl_ctx *ctx, struct isl_blk block,
                                size_t new_n);
index b653ed6..33d1f57 100644 (file)
@@ -125,7 +125,7 @@ typedef struct isl_ctx isl_ctx;
 struct isl_options *isl_ctx_options(isl_ctx *ctx);
 
 isl_ctx *isl_ctx_alloc_with_options(struct isl_arg *arg, __isl_take void *opt);
-isl_ctx *isl_ctx_alloc();
+isl_ctx *isl_ctx_alloc(void);
 void *isl_ctx_peek_options(isl_ctx *ctx, struct isl_arg *arg);
 void isl_ctx_ref(struct isl_ctx *ctx);
 void isl_ctx_deref(struct isl_ctx *ctx);