[Xcb] [PATCH:libxcb] Define _xcb_map_new with explicit void arg list instead of empty one

Alan Coopersmith alan.coopersmith at oracle.com
Sat Aug 3 16:03:05 PDT 2013


Fixes Solaris Studio compiler warning:
"xcb_list.c", line 50: warning: old style function definition

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/xcb_list.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
-- 
1.7.9.2



More information about the Xcb mailing list