diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 05:52:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 05:52:28 +0400 |
commit | e75f5c8208c94621ab769d79cdfad458706f846e (patch) | |
tree | 01ce4209eefebe73cdb31a8bc0ebd10879981a2d /intern/raskter/raskter.c | |
parent | 37748b1e083db2f9643a2c30a1b15db32278df85 (diff) |
quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.
helps for finding unused functions and making functions static, also did some minor code cleanup.
Diffstat (limited to 'intern/raskter/raskter.c')
-rw-r--r-- | intern/raskter/raskter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/raskter/raskter.c b/intern/raskter/raskter.c index 659d01e2d82..eaf8dcd06da 100644 --- a/intern/raskter/raskter.c +++ b/intern/raskter/raskter.c @@ -819,7 +819,7 @@ int PLX_raskterize_feather(float(*base_verts)[2], int num_base_verts, float(*fea #ifndef __PLX__FAKE_AA__ -int get_range_expanded_pixel_coord(float normalized_value, int max_value) { +static int get_range_expanded_pixel_coord(float normalized_value, int max_value) { return (int)((normalized_value * (float)(max_value)) + 0.5f); } @@ -1395,7 +1395,7 @@ int PLX_antialias_buffer(float *buf, int buf_x, int buf_y) { #define SWAP_POLYVERT(a,b) point_temp[0]=(a)[0]; point_temp[1]=(a)[1]; (a)[0]=(b)[0]; (a)[1]=(b)[1]; (b)[0]=point_temp[0]; (b)[1]=point_temp[1]; #define __PLX_SMALL_COUNT__ 13 -void plx_floatsort(float(*f)[2], unsigned int n, int sortby) { +static void plx_floatsort(float(*f)[2], unsigned int n, int sortby) { unsigned int a; unsigned int b; unsigned int c; @@ -1474,7 +1474,7 @@ void plx_floatsort(float(*f)[2], unsigned int n, int sortby) { } } -int plx_find_lower_bound(float v, float(*a)[2], int num_feather_verts) { +static int plx_find_lower_bound(float v, float(*a)[2], int num_feather_verts) { int x; int l; int r; @@ -1502,7 +1502,7 @@ int plx_find_lower_bound(float v, float(*a)[2], int num_feather_verts) { } } -int plx_find_upper_bound(float v, float(*a)[2], int num_feather_verts) { +static int plx_find_upper_bound(float v, float(*a)[2], int num_feather_verts) { int x; int l; int r; |