[mutter] cogl: Add missing `void` to functions with no arguments



commit c55004864d629ff479713163e05caacf8a5ec6fb
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sun Jan 20 11:38:06 2019 +0100

    cogl: Add missing `void` to functions with no arguments
    
    I.e. foo () -> foo (void).

 cogl/cogl-path/tesselator/mesh.c       | 4 ++--
 cogl/cogl-path/tesselator/tesselator.h | 2 +-
 cogl/cogl/cogl-context-private.h       | 2 +-
 cogl/tests/conform/test-path.c         | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/cogl/cogl-path/tesselator/mesh.c b/cogl/cogl-path/tesselator/mesh.c
index 36cb3a7be..39aa61587 100644
--- a/cogl/cogl-path/tesselator/mesh.c
+++ b/cogl/cogl-path/tesselator/mesh.c
@@ -45,12 +45,12 @@
 #define FALSE 0
 #endif
 
-static GLUvertex *allocVertex()
+static GLUvertex *allocVertex(void)
 {
    return (GLUvertex *)memAlloc( sizeof( GLUvertex ));
 }
 
-static GLUface *allocFace()
+static GLUface *allocFace(void)
 {
    return (GLUface *)memAlloc( sizeof( GLUface ));
 }
diff --git a/cogl/cogl-path/tesselator/tesselator.h b/cogl/cogl-path/tesselator/tesselator.h
index 5b651be1d..070873987 100644
--- a/cogl/cogl-path/tesselator/tesselator.h
+++ b/cogl/cogl-path/tesselator/tesselator.h
@@ -45,7 +45,7 @@ void gluBeginPolygon (GLUtesselator* tess);
 void gluDeleteTess (GLUtesselator* tess);
 void gluEndPolygon (GLUtesselator* tess);
 
-typedef void (_GLUfuncptr)();
+typedef void (_GLUfuncptr)(void);
 
 void gluGetTessProperty (GLUtesselator* tess, GLenum which, double* data);
 
diff --git a/cogl/cogl/cogl-context-private.h b/cogl/cogl/cogl-context-private.h
index 4642094a0..bee5bf84e 100644
--- a/cogl/cogl/cogl-context-private.h
+++ b/cogl/cogl/cogl-context-private.h
@@ -360,7 +360,7 @@ struct _CoglContext
 };
 
 CoglContext *
-_cogl_context_get_default ();
+_cogl_context_get_default (void);
 
 const CoglWinsysVtable *
 _cogl_context_get_winsys (CoglContext *context);
diff --git a/cogl/tests/conform/test-path.c b/cogl/tests/conform/test-path.c
index 65cebfea4..aa911d2fa 100644
--- a/cogl/tests/conform/test-path.c
+++ b/cogl/tests/conform/test-path.c
@@ -177,7 +177,7 @@ paint (TestState *state)
 }
 
 static void
-validate_result ()
+validate_result (void)
 {
   check_block (0, 0, 0x8 /* bottom right */);
   check_block (1, 0, 0xf /* all of them */);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]