Cleanup: quiet strict-prototypes warning with CLANG

This commit is contained in:
Campbell Barton
2023-03-28 12:14:14 +11:00
parent 1b0816929f
commit bbcfdb844c
12 changed files with 14 additions and 13 deletions

View File

@@ -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);

View File

@@ -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");

View File

@@ -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;

View File

@@ -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");

View File

@@ -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;

View File

@@ -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. */

View File

@@ -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");
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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];
}

View File

@@ -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);
}

View File

@@ -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];