diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-03 20:25:23 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-06 11:10:01 -0700 |
commit | 5648ddd2b97068f549268284129a438a6845e14c (patch) | |
tree | ea0facdd519d465a531e6b6ba8d42dee090bd9a9 /src | |
parent | cb51f271b26c6abc76d415553f202bc5139273ca (diff) |
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 <alan.coopersmith@oracle.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/xcb_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |