From 45b9b0df55bb2f7b5b2edf36c06d5925ef7d7e2e Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 24 Feb 2005 00:57:34 +0000 Subject: [PATCH] fix "function declaration isn't a prototype" warnings from -Wstrict-prototypes mostly by using (void) instead of () for functions with empty parameter lists. --- lib/vmalloc/vmhdr.h | 2 +- tclpkg/tcldot/tkgen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vmalloc/vmhdr.h b/lib/vmalloc/vmhdr.h index dbc58b0ba..ca36da0fc 100644 --- a/lib/vmalloc/vmhdr.h +++ b/lib/vmalloc/vmhdr.h @@ -158,7 +158,7 @@ extern "C" { long l, *lp; double d, *dp, ***dppp[8]; size_t s, *sp; - void (*fn) (); + void (*fn) (void); union _align_u *align; Head_t *head; Body_t *body; diff --git a/tclpkg/tcldot/tkgen.c b/tclpkg/tcldot/tkgen.c index 7502bb86b..66315fb8e 100644 --- a/tclpkg/tcldot/tkgen.c +++ b/tclpkg/tcldot/tkgen.c @@ -94,7 +94,7 @@ static void tkgen_start_item(char *item) tkgen_append_string(item); } -static void tkgen_end_item() +static void tkgen_end_item(void) { tkgen_append_string("\n"); } -- 2.40.0