forked from bartvdbraak/blender
Fix a few compiler warnings with OS X / clang.
This commit is contained in:
parent
667a5ef48e
commit
1dfbcd88d5
@ -154,6 +154,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
return read(data[ix + iy*width]);
|
||||
}
|
||||
@ -183,6 +184,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
float4 r = (1.0f - ty)*(1.0f - tx)*read(data[ix + iy*width]);
|
||||
@ -231,6 +233,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
const int xc[4] = {pix, ix, nix, nnix};
|
||||
@ -298,6 +301,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
return read(data[ix + iy*width + iz*width*height]);
|
||||
@ -335,6 +339,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
float4 r;
|
||||
@ -402,6 +407,7 @@ template<typename T> struct texture_image {
|
||||
break;
|
||||
default:
|
||||
kernel_assert(0);
|
||||
return make_float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
const int xc[4] = {pix, ix, nix, nnix};
|
||||
|
@ -52,7 +52,6 @@
|
||||
|
||||
class MT_Vector3 : public MT_Tuple3 {
|
||||
public:
|
||||
virtual ~MT_Vector3() {}
|
||||
MT_Vector3() {}
|
||||
MT_Vector3(const float *v) : MT_Tuple3(v) {}
|
||||
MT_Vector3(const double *v) : MT_Tuple3(v) {}
|
||||
|
@ -53,7 +53,6 @@
|
||||
|
||||
class MT_Vector4 : public MT_Tuple4 {
|
||||
public:
|
||||
virtual ~MT_Vector4() {}
|
||||
MT_Vector4() {}
|
||||
MT_Vector4(const float *v) : MT_Tuple4(v) {}
|
||||
MT_Vector4(const double *v) : MT_Tuple4(v) {}
|
||||
|
@ -1146,7 +1146,7 @@ void ED_screen_draw(wmWindow *win)
|
||||
/* blended join arrow */
|
||||
if (sa1 && sa2) {
|
||||
int dir = area_getorientation(sa1, sa2);
|
||||
int dira;
|
||||
int dira = -1;
|
||||
if (dir != -1) {
|
||||
switch (dir) {
|
||||
case 0: /* W */
|
||||
|
Loading…
Reference in New Issue
Block a user