Cleanup: compiler warnings
This commit is contained in:
parent
edd1164575
commit
e2e31b9bac
|
@ -489,6 +489,7 @@ void BKE_volume_grid_wireframe(const Volume *volume,
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef WITH_OPENVDB
|
||||
static void grow_triangles(blender::MutableSpan<blender::float3> verts,
|
||||
blender::Span<std::array<int, 3>> tris,
|
||||
const float factor)
|
||||
|
@ -506,6 +507,7 @@ static void grow_triangles(blender::MutableSpan<blender::float3> verts,
|
|||
verts[i] += offsets[i];
|
||||
}
|
||||
}
|
||||
#endif /* WITH_OPENVDB */
|
||||
|
||||
void BKE_volume_grid_selection_surface(const Volume *volume,
|
||||
VolumeGrid *volume_grid,
|
||||
|
|
|
@ -54,9 +54,10 @@ typedef enum GPUAttachmentType : int {
|
|||
* the maximum number of COLOR attachments specified by glDrawBuffers. */
|
||||
GPU_FB_MAX_ATTACHMENT,
|
||||
|
||||
GPU_FB_MAX_COLOR_ATTACHMENT = (GPU_FB_MAX_ATTACHMENT - GPU_FB_COLOR_ATTACHMENT0),
|
||||
} GPUAttachmentType;
|
||||
|
||||
#define GPU_FB_MAX_COLOR_ATTACHMENT (GPU_FB_MAX_ATTACHMENT - GPU_FB_COLOR_ATTACHMENT0)
|
||||
|
||||
inline constexpr GPUAttachmentType operator-(GPUAttachmentType a, int b)
|
||||
{
|
||||
return static_cast<GPUAttachmentType>(static_cast<int>(a) - b);
|
||||
|
|
|
@ -206,7 +206,6 @@
|
|||
.current_xnew = NULL, \
|
||||
.current_x = NULL, \
|
||||
.current_v = NULL, \
|
||||
.current_v = NULL, \
|
||||
.tri = NULL, \
|
||||
.mvert_num = 0, \
|
||||
.tri_num = 0, \
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "RNA_define.h"
|
||||
#include "RNA_enum_types.h"
|
||||
|
||||
#include "rna_internal.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue