From 5648ddd2b97068f549268284129a438a6845e14c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 3 Aug 2013 20:25:23 -0700 Subject: Define _xcb_map_new with explicit void arg list instead of empty one Fixes Solaris Studio compiler warning: "xcb_list.c", line 50: warning: old style function definition and gcc warning: xcb_list.c: In function '_xcb_map_new': xcb_list.c:50:11: warning: old-style function definition [-Wold-style-definition] Signed-off-by: Alan Coopersmith Reviewed-by: Josh Triplett --- src/xcb_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/xcb_list.c b/src/xcb_list.c index 6f5c611..129540b 100644 --- a/src/xcb_list.c +++ b/src/xcb_list.c @@ -47,7 +47,7 @@ struct _xcb_map { /* Private interface */ -_xcb_map *_xcb_map_new() +_xcb_map *_xcb_map_new(void) { _xcb_map *list; list = malloc(sizeof(_xcb_map)); -- cgit v1.2.3