diff --git a/source/blender/blenfont/intern/blf_font_default.c b/source/blender/blenfont/intern/blf_font_default.c index 63b1cf34db5..9a3bf1a3797 100644 --- a/source/blender/blenfont/intern/blf_font_default.c +++ b/source/blender/blenfont/intern/blf_font_default.c @@ -92,7 +92,7 @@ static void blf_load_datafiles_dir(void) BLI_filelist_free(file_list, file_list_num); } -void BLF_load_font_stack() +void BLF_load_font_stack(void) { /* Load these if not already, might have been replaced by user custom. */ BLF_load_default(false); diff --git a/source/blender/blenkernel/intern/main.c b/source/blender/blenkernel/intern/main.c index a2c5f7a91af..6c5afa683fa 100644 --- a/source/blender/blenkernel/intern/main.c +++ b/source/blender/blenkernel/intern/main.c @@ -29,7 +29,7 @@ #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" -Main *BKE_main_new() +Main *BKE_main_new(void) { Main *bmain = MEM_callocN(sizeof(Main), "new main"); bmain->lock = MEM_mallocN(sizeof(SpinLock), "main lock"); diff --git a/source/blender/blenkernel/intern/mask_rasterize.c b/source/blender/blenkernel/intern/mask_rasterize.c index adc0eb5f78c..7b3792b7451 100644 --- a/source/blender/blenkernel/intern/mask_rasterize.c +++ b/source/blender/blenkernel/intern/mask_rasterize.c @@ -993,6 +993,7 @@ void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, * 'face_index' is kept from loop above */ BLI_assert(face_index == sf_tri_tot); + UNUSED_VARS_NDEBUG(face_index); if (tot_feather_quads) { ScanFillEdge *sf_edge; diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index ab5fd55d43e..824eff7cc6b 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -336,7 +336,7 @@ void BKE_nla_tracks_copy_from_adt(Main *bmain, /* Adding ------------------------------------------- */ -NlaTrack *BKE_nlatrack_new() +NlaTrack *BKE_nlatrack_new(void) { /* allocate new track */ NlaTrack *nlt = MEM_callocN(sizeof(NlaTrack), "NlaTrack"); diff --git a/source/blender/blenlib/intern/BLI_timer.c b/source/blender/blenlib/intern/BLI_timer.c index 8aa5521870f..5a33a19d702 100644 --- a/source/blender/blenlib/intern/BLI_timer.c +++ b/source/blender/blenlib/intern/BLI_timer.c @@ -114,13 +114,13 @@ static void remove_tagged_functions(void) } } -void BLI_timer_execute() +void BLI_timer_execute(void) { execute_functions_if_necessary(); remove_tagged_functions(); } -void BLI_timer_free() +void BLI_timer_free(void) { LISTBASE_FOREACH (TimedFunction *, timed_func, &GlobalTimer.funcs) { timed_func->tag_removal = true; diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index f954f548508..df6d4f59933 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -212,7 +212,7 @@ GPUBatch *drw_cache_procedural_triangles_get(void) return SHC.drw_procedural_tris; } -GPUBatch *drw_cache_procedural_triangle_strips_get() +GPUBatch *drw_cache_procedural_triangle_strips_get(void) { if (!SHC.drw_procedural_tri_strips) { /* TODO(fclem): get rid of this dummy VBO. */ diff --git a/source/blender/draw/intern/draw_instance_data.c b/source/blender/draw/intern/draw_instance_data.c index bf4efa30785..6df28032cda 100644 --- a/source/blender/draw/intern/draw_instance_data.c +++ b/source/blender/draw/intern/draw_instance_data.c @@ -622,7 +622,7 @@ void drw_uniform_attrs_pool_update(GHash *table, } } -GPUUniformBuf *drw_ensure_layer_attribute_buffer() +GPUUniformBuf *drw_ensure_layer_attribute_buffer(void) { DRWData *data = DST.vmempool; @@ -685,7 +685,7 @@ DRWSparseUniformBuf *DRW_uniform_attrs_pool_find_ubo(GHash *table, return buffer ? &buffer->ubos : NULL; } -GHash *DRW_uniform_attrs_pool_new() +GHash *DRW_uniform_attrs_pool_new(void) { return GPU_uniform_attr_list_hash_new("obattr_hash"); } diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c index 3ae73282230..49fadb426d8 100644 --- a/source/blender/editors/space_nla/nla_ops.c +++ b/source/blender/editors/space_nla/nla_ops.c @@ -140,7 +140,7 @@ void nla_operatortypes(void) WM_operatortype_append(NLA_OT_fmodifier_paste); } -void ED_operatormacros_nla() +void ED_operatormacros_nla(void) { wmOperatorType *ot; wmOperatorTypeMacro *otmacro; diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c index bf32a509dd9..85d7ba9714b 100644 --- a/source/blender/editors/space_view3d/view3d_cursor_snap.c +++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c @@ -1027,7 +1027,7 @@ void ED_view3d_cursor_snap_data_update(V3DSnapCursorState *state, } } -V3DSnapCursorData *ED_view3d_cursor_snap_data_get() +V3DSnapCursorData *ED_view3d_cursor_snap_data_get(void) { SnapCursorDataIntern *data_intern = &g_data_intern; return &data_intern->snap_data; diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 344dccfe919..7e5098477a9 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -1416,7 +1416,7 @@ bool IMB_colormanagement_space_name_is_srgb(const char *name) return (colorspace && IMB_colormanagement_space_is_srgb(colorspace)); } -const float *IMB_colormanagement_get_xyz_to_scene_linear() +const float *IMB_colormanagement_get_xyz_to_scene_linear(void) { return &imbuf_xyz_to_scene_linear[0][0]; } diff --git a/source/blender/python/generic/idprop_py_ui_api.c b/source/blender/python/generic/idprop_py_ui_api.c index 78a328ab772..ad26fe273ed 100644 --- a/source/blender/python/generic/idprop_py_ui_api.c +++ b/source/blender/python/generic/idprop_py_ui_api.c @@ -822,7 +822,7 @@ PyTypeObject BPy_IDPropertyUIManager_Type = { /*tp_vectorcall*/ NULL, }; -void IDPropertyUIData_Init_Types() +void IDPropertyUIData_Init_Types(void) { PyType_Ready(&BPy_IDPropertyUIManager_Type); } diff --git a/source/blender/windowmanager/intern/wm_platform_support.c b/source/blender/windowmanager/intern/wm_platform_support.c index ee93621545f..674cbe4ef8e 100644 --- a/source/blender/windowmanager/intern/wm_platform_support.c +++ b/source/blender/windowmanager/intern/wm_platform_support.c @@ -95,7 +95,7 @@ static void wm_platform_support_create_link(char *link) BLI_dynstr_free(ds); } -bool WM_platform_support_perform_checks() +bool WM_platform_support_perform_checks(void) { char title[WM_PLATFORM_SUPPORT_TEXT_SIZE]; char message[WM_PLATFORM_SUPPORT_TEXT_SIZE];