From cd972535027a73ba70069051fe9038b6a8b5696a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 3 Dec 2010 12:30:59 +0000 Subject: - added GCC warning -Wstrict-prototypes - fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute. --- source/blender/blenlib/BLI_ghash.h | 2 +- source/blender/blenlib/BLI_threads.h | 2 +- source/blender/blenlib/intern/math_color.c | 2 +- source/blender/blenlib/intern/storage.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index 0e985184f7a..122385ca79a 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -190,7 +190,7 @@ BM_INLINE void BLI_ghash_insert(GHash *gh, void *key, void *val) { gh->buckets[hash]= e; if (++gh->nentries>(float)gh->nbuckets/2) { - Entry *e, **old= gh->buckets; + Entry **old= gh->buckets; int i, nold= gh->nbuckets; gh->nbuckets= hashsizes[++gh->cursize]; diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 6a0a711404c..ad968deb0c5 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -121,7 +121,7 @@ void BLI_insert_work(struct ThreadedWorker *worker, void *param); typedef struct ThreadQueue ThreadQueue; -ThreadQueue *BLI_thread_queue_init(); +ThreadQueue *BLI_thread_queue_init(void); void BLI_thread_queue_free(ThreadQueue *queue); void BLI_thread_queue_push(ThreadQueue *queue, void *work); diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c index c481744156a..09a419b0e04 100644 --- a/source/blender/blenlib/intern/math_color.c +++ b/source/blender/blenlib/intern/math_color.c @@ -448,7 +448,7 @@ void minmax_rgb(short c[]) } /*If the requested RGB shade contains a negative weight for - one of the primaries, it lies outside the colour gamut + one of the primaries, it lies outside the color gamut accessible from the given triple of primaries. Desaturate it by adding white, equal quantities of R, G, and B, enough to make RGB all positive. The function returns 1 if the diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index 7144a7dce34..70d9d080c31 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -289,7 +289,7 @@ void BLI_builddir(const char *dirname, char *relname) } } -void BLI_adddirstrings() +void BLI_adddirstrings(void) { char datum[100]; char buf[512]; -- cgit v1.2.3