diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-07-31 21:26:29 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-07-31 21:26:29 -0600 |
commit | fb9dcc629630fe77840574088412eeb12b8d7ddb (patch) | |
tree | bb6735fa053ee26b43c09455eccd20a19fb8b1b6 /libdimension | |
parent | db019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff) | |
download | dimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz |
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/dimension/camera.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/cameras.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/error.h | 6 | ||||
-rw-r--r-- | libdimension/dimension/geometry.h | 6 | ||||
-rw-r--r-- | libdimension/dimension/interior.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/light.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/object.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/objects.h | 4 | ||||
-rw-r--r-- | libdimension/dimension/progress.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/scene.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/texture.h | 6 | ||||
-rw-r--r-- | libdimension/error.c | 2 | ||||
-rw-r--r-- | libdimension/platform.h | 6 | ||||
-rw-r--r-- | libdimension/prtree.c | 2 |
14 files changed, 23 insertions, 23 deletions
diff --git a/libdimension/dimension/camera.h b/libdimension/dimension/camera.h index 1bc3e1f..e95ad18 100644 --- a/libdimension/dimension/camera.h +++ b/libdimension/dimension/camera.h @@ -41,7 +41,7 @@ struct dmnsn_camera { void *ptr; }; -dmnsn_camera *dmnsn_new_camera(); +dmnsn_camera *dmnsn_new_camera(void); void dmnsn_delete_camera(dmnsn_camera *camera); #endif /* DIMENSION_CAMERA_H */ diff --git a/libdimension/dimension/cameras.h b/libdimension/dimension/cameras.h index 7c588bf..7f4d549 100644 --- a/libdimension/dimension/cameras.h +++ b/libdimension/dimension/cameras.h @@ -28,7 +28,7 @@ /* A perspective camera, at the origin, looking at (0, 0, 1). The feild of view is the section of the plane z = 1 from (-0.5, -0.5) to (0.5, 0.5). Rays are transformed by the camera's transformation matrix. */ -dmnsn_camera *dmnsn_new_perspective_camera(); +dmnsn_camera *dmnsn_new_perspective_camera(void); /* Get or set the transformation matrix */ dmnsn_matrix dmnsn_get_perspective_camera_trans(const dmnsn_camera *camera); diff --git a/libdimension/dimension/error.h b/libdimension/dimension/error.h index 6eecbfb..a0b3857 100644 --- a/libdimension/dimension/error.h +++ b/libdimension/dimension/error.h @@ -66,15 +66,15 @@ void dmnsn_report_error(dmnsn_severity severity, const char *str); /* Get and set the library resilience, thread-safely */ -dmnsn_severity dmnsn_get_resilience(); +dmnsn_severity dmnsn_get_resilience(void); void dmnsn_set_resilience(dmnsn_severity resilience); /* Fatal error callback type */ -typedef void dmnsn_fatal_error_fn(); +typedef void dmnsn_fatal_error_fn(void); /* Get and set libdimension fatal error handling strategy - the default is exit(EXIT_FAILURE) */ -dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn(); +dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn(void); void dmnsn_set_fatal_error_fn(dmnsn_fatal_error_fn *fatal); #endif /* DIMENSION_ERROR_H */ diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h index 5efba3a..42a9985 100644 --- a/libdimension/dimension/geometry.h +++ b/libdimension/dimension/geometry.h @@ -118,7 +118,7 @@ dmnsn_new_matrix(double a0, double a1, double a2, double a3, return m; } -dmnsn_matrix dmnsn_identity_matrix(); +dmnsn_matrix dmnsn_identity_matrix(void); dmnsn_matrix dmnsn_scale_matrix(dmnsn_vector s); dmnsn_matrix dmnsn_translation_matrix(dmnsn_vector d); /* Left-handed rotation; theta/|theta| = axis, |theta| = angle */ @@ -132,7 +132,7 @@ dmnsn_new_line(dmnsn_vector x0, dmnsn_vector n) } DMNSN_INLINE dmnsn_bounding_box -dmnsn_zero_bounding_box() +dmnsn_zero_bounding_box(void) { dmnsn_bounding_box box = { { INFINITY, INFINITY, INFINITY }, @@ -142,7 +142,7 @@ dmnsn_zero_bounding_box() } DMNSN_INLINE dmnsn_bounding_box -dmnsn_infinite_bounding_box() +dmnsn_infinite_bounding_box(void) { dmnsn_bounding_box box = { { -INFINITY, -INFINITY, -INFINITY }, diff --git a/libdimension/dimension/interior.h b/libdimension/dimension/interior.h index 69a0fcb..96168cf 100644 --- a/libdimension/dimension/interior.h +++ b/libdimension/dimension/interior.h @@ -39,7 +39,7 @@ typedef struct dmnsn_interior { unsigned int *refcount; } dmnsn_interior; -dmnsn_interior *dmnsn_new_interior(); +dmnsn_interior *dmnsn_new_interior(void); void dmnsn_delete_interior(dmnsn_interior *interior); #endif /* DIMENSION_INTERIOR_H */ diff --git a/libdimension/dimension/light.h b/libdimension/dimension/light.h index 3c861fd..69ed9e7 100644 --- a/libdimension/dimension/light.h +++ b/libdimension/dimension/light.h @@ -41,7 +41,7 @@ struct dmnsn_light { void *ptr; }; -dmnsn_light *dmnsn_new_light(); +dmnsn_light *dmnsn_new_light(void); void dmnsn_delete_light(dmnsn_light *light); #endif /* DIMENSION_LIGHT_H */ diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index 5cc62a1..f633a2d 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -83,7 +83,7 @@ struct dmnsn_object { }; /* Allocate a dummy object */ -dmnsn_object *dmnsn_new_object(); +dmnsn_object *dmnsn_new_object(void); /* Free an object */ void dmnsn_delete_object(dmnsn_object *object); diff --git a/libdimension/dimension/objects.h b/libdimension/dimension/objects.h index a12fee9..9986717 100644 --- a/libdimension/dimension/objects.h +++ b/libdimension/dimension/objects.h @@ -29,9 +29,9 @@ dmnsn_object *dmnsn_new_plane(dmnsn_vector normal); /* A sphere object, of radius 1, centered at the origin. */ -dmnsn_object *dmnsn_new_sphere(); +dmnsn_object *dmnsn_new_sphere(void); /* A cube, axis-aligned, from (-1, -1, -1) to (1, 1, 1) */ -dmnsn_object *dmnsn_new_cube(); +dmnsn_object *dmnsn_new_cube(void); #endif /* DIMENSION_OBJECTS_H */ diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h index 0a7dce2..53dfc37 100644 --- a/libdimension/dimension/progress.h +++ b/libdimension/dimension/progress.h @@ -31,7 +31,7 @@ typedef struct dmnsn_progress dmnsn_progress; /* Allocate a new progress object */ -dmnsn_progress *dmnsn_new_progress(); +dmnsn_progress *dmnsn_new_progress(void); /* For failed returns from *_async() functions */ void dmnsn_delete_progress(dmnsn_progress *progress); diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h index 6831048..7c53991 100644 --- a/libdimension/dimension/scene.h +++ b/libdimension/dimension/scene.h @@ -67,7 +67,7 @@ typedef struct { } dmnsn_scene; /* Create a scene */ -dmnsn_scene *dmnsn_new_scene(); +dmnsn_scene *dmnsn_new_scene(void); void dmnsn_delete_scene(dmnsn_scene *scene); #endif /* DIMENSION_SCENE_H */ diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h index b2eef05..3d37aa1 100644 --- a/libdimension/dimension/texture.h +++ b/libdimension/dimension/texture.h @@ -49,7 +49,7 @@ struct dmnsn_pigment { void *ptr; }; -dmnsn_pigment *dmnsn_new_pigment(); +dmnsn_pigment *dmnsn_new_pigment(void); void dmnsn_delete_pigment(dmnsn_pigment *pigment); void dmnsn_pigment_init(dmnsn_pigment *pigment); @@ -88,7 +88,7 @@ struct dmnsn_finish { void *ptr; }; -dmnsn_finish *dmnsn_new_finish(); +dmnsn_finish *dmnsn_new_finish(void); void dmnsn_delete_finish(dmnsn_finish *finish); /* @@ -107,7 +107,7 @@ typedef struct { unsigned int *refcount; } dmnsn_texture; -dmnsn_texture *dmnsn_new_texture(); +dmnsn_texture *dmnsn_new_texture(void); void dmnsn_delete_texture(dmnsn_texture *texture); void dmnsn_texture_init(dmnsn_texture *texture); diff --git a/libdimension/error.c b/libdimension/error.c index 5785356..c8e10e9 100644 --- a/libdimension/error.c +++ b/libdimension/error.c @@ -24,7 +24,7 @@ #include <stdio.h> /* For fprintf() */ #include <stdlib.h> /* For exit() */ -static void dmnsn_default_fatal_error_fn(); +static void dmnsn_default_fatal_error_fn(void); static dmnsn_fatal_error_fn *dmnsn_fatal = &dmnsn_default_fatal_error_fn; static dmnsn_severity dmnsn_resilience = DMNSN_SEVERITY_MEDIUM; diff --git a/libdimension/platform.h b/libdimension/platform.h index a2bcd39..a5d4dc6 100644 --- a/libdimension/platform.h +++ b/libdimension/platform.h @@ -29,12 +29,12 @@ void dmnsn_backtrace(FILE *file); /* Return whether this is the main execution thread, if we can tell */ -bool dmnsn_is_main_thread(); +bool dmnsn_is_main_thread(void); /* Return true if we are little-endian */ -bool dmnsn_is_little_endian(); +bool dmnsn_is_little_endian(void); /* Return the number of CPUs available to dimension */ -size_t dmnsn_ncpus(); +size_t dmnsn_ncpus(void); #endif /* DIMENSION_IMPL_UTILITIES_H */ diff --git a/libdimension/prtree.c b/libdimension/prtree.c index 6980337..69a70a4 100644 --- a/libdimension/prtree.c +++ b/libdimension/prtree.c @@ -518,7 +518,7 @@ dmnsn_new_prtree(const dmnsn_array *objects) } /* Free a PR-tree node */ -void +static void dmnsn_delete_prtree_node(dmnsn_prtree_node *node) { if (node) { |