From: Sven Verdoolaege Date: Fri, 9 Sep 2011 15:40:06 +0000 (+0200) Subject: provide full prototypes for some functions with no arguments X-Git-Tag: isl-0.08~19^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cf36fe1cb12409b3842187664711f82472cabda;p=platform%2Fupstream%2Fisl.git provide full prototypes for some functions with no arguments Reported-by: Zbigniew Chamski Signed-off-by: Sven Verdoolaege --- diff --git a/include/isl/arg.h b/include/isl/arg.h index d37e495..c05885e 100644 --- a/include/isl/arg.h +++ b/include/isl/arg.h @@ -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); diff --git a/include/isl/blk.h b/include/isl/blk.h index 8094e2a..690a872 100644 --- a/include/isl/blk.h +++ b/include/isl/blk.h @@ -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); diff --git a/include/isl/ctx.h b/include/isl/ctx.h index b653ed6..33d1f57 100644 --- a/include/isl/ctx.h +++ b/include/isl/ctx.h @@ -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);