Permalink
Browse files

Build with -Wstrict-prototypes -Werror

  • Loading branch information...
1 parent 2447169 commit ae82ba5b2a22e9cfaacbbed4d3280191c5b31d2d @jonnor jonnor committed Apr 8, 2014
Showing with 12 additions and 12 deletions.
  1. +1 −1 SConstruct
  2. +1 −1 fifo.c
  3. +1 −1 fifo.h
  4. +1 −1 gegl/mypaint-gegl-surface.c
  5. +1 −1 gegl/mypaint-gegl-surface.h
  6. +1 −1 mypaint-brush.c
  7. +1 −1 mypaint-brush.h
  8. +2 −2 mypaint.c
  9. +1 −1 mypaint.h
  10. +1 −1 operationqueue.c
  11. +1 −1 operationqueue.h
View
@@ -45,7 +45,7 @@ if os.environ.has_key('LDFLAGS'):
opts.Update(env)
env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings')
-env.Append(CCFLAGS='-Wall')
+env.Append(CCFLAGS='-Wall -Wstrict-prototypes -Werror')
env.Append(CFLAGS='-std=c99')
env['GEGL_VERSION'] = 0.3
View
@@ -36,7 +36,7 @@ struct fifo
*
* Allocate and initialize fifo structure. Add an empty item to the fifo.
*/
-struct fifo* fifo_new()
+struct fifo* fifo_new(void)
{
struct fifo *ret = (struct fifo *) malloc(sizeof(struct fifo));
ret->first = NULL;
View
@@ -4,7 +4,7 @@
typedef struct fifo Fifo;
typedef void (*FifoUserFreeFunction) (void *item_data);
-Fifo* fifo_new();
+Fifo* fifo_new(void);
void fifo_free(Fifo* self, FifoUserFreeFunction data_free);
void fifo_push(Fifo* self, void* data);
@@ -193,7 +193,7 @@ mypaint_gegl_tiled_surface_set_buffer(MyPaintGeglTiledSurface *self, GeglBuffer
}
MyPaintGeglTiledSurface *
-mypaint_gegl_tiled_surface_new()
+mypaint_gegl_tiled_surface_new(void)
{
MyPaintGeglTiledSurface *self = (MyPaintGeglTiledSurface *)malloc(sizeof(MyPaintGeglTiledSurface));
@@ -36,7 +36,7 @@ MyPaintSurface *
mypaint_gegl_tiled_surface_interface(MyPaintGeglTiledSurface *self);
MyPaintGeglTiledSurface *
-mypaint_gegl_tiled_surface_new();
+mypaint_gegl_tiled_surface_new(void);
G_END_DECLS
View
@@ -109,7 +109,7 @@ void settings_base_values_have_changed (MyPaintBrush *self);
* Initial reference count is 1. Release references using mypaint_brush_unref()
*/
MyPaintBrush *
-mypaint_brush_new()
+mypaint_brush_new(void)
{
MyPaintBrush *self = (MyPaintBrush *)malloc(sizeof(MyPaintBrush));
View
@@ -29,7 +29,7 @@ typedef struct _MyPaintBrush MyPaintBrush;
#include <glib/mypaint-brush.h>
MyPaintBrush *
-mypaint_brush_new();
+mypaint_brush_new(void);
void
mypaint_brush_unref(MyPaintBrush *self);
View
@@ -6,7 +6,7 @@
#endif
void
-ensure_max_threads_not_exceeded()
+ensure_max_threads_not_exceeded(void)
{
#ifdef _OPENMP
const int max_threads = omp_get_max_threads();
@@ -17,7 +17,7 @@ ensure_max_threads_not_exceeded()
}
void
-mypaint_init()
+mypaint_init(void)
{
ensure_max_threads_not_exceeded();
//bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
View
@@ -1,6 +1,6 @@
#ifndef MYPAINT_H
#define MYPAINT_H
-void mypaint_init();
+void mypaint_init(void);
#endif // MYPAINT_H
View
@@ -83,7 +83,7 @@ operation_queue_resize(OperationQueue *self, int new_size)
}
OperationQueue *
-operation_queue_new()
+operation_queue_new(void)
{
OperationQueue *self = (OperationQueue *)malloc(sizeof(OperationQueue));
View
@@ -23,7 +23,7 @@ typedef struct {
typedef struct _OperationQueue OperationQueue;
-OperationQueue *operation_queue_new();
+OperationQueue *operation_queue_new(void);
void operation_queue_free(OperationQueue *self);
int operation_queue_get_dirty_tiles(OperationQueue *self, TileIndex** tiles_out);

0 comments on commit ae82ba5

Please sign in to comment.