Cleanup: warnings

This commit is contained in:
Campbell Barton
2017-05-21 09:39:31 +10:00
parent 53d1026f2a
commit 07dd208209
7 changed files with 9 additions and 10 deletions

View File

@@ -1802,7 +1802,7 @@ void BKE_layer_eval_layer_collection_post(struct EvaluationContext *UNUSED(eval_
/**
* Free any static allocated memory.
*/
void BKE_layer_exit()
void BKE_layer_exit(void)
{
layer_collection_engine_settings_validate_free();
}

View File

@@ -382,6 +382,8 @@ static MeshRenderData *mesh_render_data_create(Mesh *me, const int types)
/* don't access mesh directly, instead use vars taken from BMesh or Mesh */
#define me DONT_USE_THIS
#ifdef me /* quiet warning */
#endif
rdata->uv_len = CustomData_number_of_layers(cd_ldata, CD_MLOOPUV);
rdata->vcol_len = CustomData_number_of_layers(cd_ldata, CD_MLOOPCOL);
@@ -496,6 +498,8 @@ static MeshRenderData *mesh_render_data_create(Mesh *me, const int types)
BKE_mesh_loop_tangents_ex(me->mvert, me->totvert, me->mloop, rdata->mtangent[i],
loopnors, rdata->mloopuv[i], me->totloop, me->mpoly, me->totpoly, NULL);
#define me DONT_USE_THIS
#ifdef me /* quiet warning */
#endif
}
}
}

View File

@@ -2419,7 +2419,7 @@ static void DRW_engines_draw_text(void)
/**
* Returns the offset required for the drawing of engines info.
*/
int DRW_draw_region_engine_info_offset()
int DRW_draw_region_engine_info_offset(void)
{
int lines = 0;
for (LinkData *link = DST.enabled_engines.first; link; link = link->next) {
@@ -2443,7 +2443,7 @@ int DRW_draw_region_engine_info_offset()
/**
* Actual drawing;
*/
void DRW_draw_region_engine_info()
void DRW_draw_region_engine_info(void)
{
const char *info_array_final[MAX_INFO_LINES + 1];
char info_array[MAX_INFO_LINES][GPU_INFO_SIZE]; /* This should be maxium number of engines running at the same time. */

View File

@@ -944,6 +944,7 @@ static void view3d_main_region_listener(
break;
}
}
ATTR_FALLTHROUGH;
}
case ND_DATA:
case ND_VERTEX_GROUP:

View File

@@ -2533,7 +2533,7 @@ static void restore_mask(GLenum cap, const bool value) {
}
}
void gpuPopAttrib()
void gpuPopAttrib(void)
{
BLI_assert(AttribStack.top > 0);
AttribStack.top--;

View File

@@ -82,8 +82,6 @@
#include "BLI_threads.h"
#define NO_ENGINE "NO_ENGINE"
#ifdef WITH_OPENEXR
EnumPropertyItem rna_enum_exr_codec_items[] = {
{R_IMF_EXR_CODEC_NONE, "NONE", 0, "None", ""},
@@ -9322,5 +9320,3 @@ void RNA_def_scene(BlenderRNA *brna)
}
#endif
#undef NO_ENGINE

View File

@@ -256,8 +256,6 @@ static void manipulator_arrow_draw(const bContext *UNUSED(C), wmManipulator *man
* Calculate arrow offset independent from prop min value,
* meaning the range will not be offset by min value first.
*/
#define USE_ABS_HANDLE_RANGE
static int manipulator_arrow_handler(bContext *C, const wmEvent *event, wmManipulator *manipulator, const int flag)
{
ArrowManipulator *arrow = (ArrowManipulator *)manipulator;