Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-03 14:04:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-03 14:04:16 +0400
commit0298d223cc1156df3a32fbb3a97dccf5ddb5ad02 (patch)
tree437798c6e1ae0541bd7169072d2c5a5e276a40c7 /source/blender/editors/space_sequencer/sequencer_scopes.c
parent744a3b9cb26a734487264eec3e9e6dacb28daa73 (diff)
quiet various warnings, also disable -Wdouble-promotion with cmake since it gives warnings with variable length args.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_scopes.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_scopes.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_scopes.c b/source/blender/editors/space_sequencer/sequencer_scopes.c
index 49ad1e2825c..b617d012237 100644
--- a/source/blender/editors/space_sequencer/sequencer_scopes.c
+++ b/source/blender/editors/space_sequencer/sequencer_scopes.c
@@ -167,7 +167,7 @@ static struct ImBuf *make_waveform_view_from_ibuf_byte(struct ImBuf * ibuf)
}
for (y = 0; y < ibuf->y; y++) {
- unsigned char * last_p = 0;
+ unsigned char * last_p = NULL;
for (x = 0; x < ibuf->x; x++) {
unsigned char * rgb = src + 4 * (ibuf->x * y + x);
@@ -182,7 +182,7 @@ static struct ImBuf *make_waveform_view_from_ibuf_byte(struct ImBuf * ibuf)
p += 4 * w;
scope_put_pixel(wtable, p);
- if (last_p != 0) {
+ if (last_p != NULL) {
wform_put_line(w, last_p, p);
}
last_p = p;
@@ -213,7 +213,7 @@ static struct ImBuf *make_waveform_view_from_ibuf_float(struct ImBuf * ibuf)
}
for (y = 0; y < ibuf->y; y++) {
- unsigned char * last_p = 0;
+ unsigned char * last_p = NULL;
for (x = 0; x < ibuf->x; x++) {
float * rgb = src + 4 * (ibuf->x * y + x);
@@ -231,7 +231,7 @@ static struct ImBuf *make_waveform_view_from_ibuf_float(struct ImBuf * ibuf)
p += 4 * w;
scope_put_pixel(wtable, p);
- if (last_p != 0) {
+ if (last_p != NULL) {
wform_put_line(w, last_p, p);
}
last_p = p;
@@ -274,7 +274,7 @@ static struct ImBuf *make_sep_waveform_view_from_ibuf_byte(struct ImBuf * ibuf)
}
for (y = 0; y < ibuf->y; y++) {
- unsigned char * last_p[3] = {0,0,0};
+ unsigned char *last_p[3] = {NULL, NULL, NULL};
for (x = 0; x < ibuf->x; x++) {
int c;
@@ -288,7 +288,7 @@ static struct ImBuf *make_sep_waveform_view_from_ibuf_byte(struct ImBuf * ibuf)
p += 4 * w;
scope_put_pixel_single(wtable, p, c);
- if (last_p[c] != 0) {
+ if (last_p[c] != NULL) {
wform_put_line_single(
w, last_p[c], p, c);
}
@@ -324,7 +324,7 @@ static struct ImBuf *make_sep_waveform_view_from_ibuf_float(
}
for (y = 0; y < ibuf->y; y++) {
- unsigned char * last_p[3] = {0, 0, 0};
+ unsigned char *last_p[3] = {NULL, NULL, NULL};
for (x = 0; x < ibuf->x; x++) {
int c;
@@ -342,7 +342,7 @@ static struct ImBuf *make_sep_waveform_view_from_ibuf_float(
p += 4 * w;
scope_put_pixel_single(wtable, p, c);
- if (last_p[c] != 0) {
+ if (last_p[c] != NULL) {
wform_put_line_single(
w, last_p[c], p, c);
}