From bb48a75c37e85fd5cc77ebd1c585f575932fb305 Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Sat, 15 Mar 2008 14:41:47 +0000 Subject: compiler warning cleanup --- source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c | 2 +- source/blender/src/buttons_editing.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c b/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c index 662d8e8dde9..5e1803a6774 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_tonemap.c @@ -63,7 +63,7 @@ static float avgLogLum(CompBuf *src, float* auto_key, float* Lav, float* Cav) } -void static tonemap(NodeTonemap* ntm, CompBuf* dst, CompBuf* src) +static void tonemap(NodeTonemap* ntm, CompBuf* dst, CompBuf* src) { int x, y; float dr, dg, db, al, igm = (ntm->gamma==0.f) ? 1 : (1.f / ntm->gamma); diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index edd9a2ff827..dc0a772d7da 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -2686,7 +2686,7 @@ static void load_buts_vfont(char *name) static void set_unicode_text_fs(char *file) { - if (file > 0) paste_unicodeText(file); + if (file) paste_unicodeText(file); } void do_fontbuts(unsigned short event) -- cgit v1.2.3