Cleanup: remove UNUSED(..) from public function declarations
This doesn't serve any purpose and can become out of sync with the function it's self without reporting warnings.
This commit is contained in:
parent
e4884d224c
commit
1f6846fa4e
|
@ -118,27 +118,27 @@ void MEM_lockfree_freeN(void *vmemh);
|
|||
void *MEM_lockfree_dupallocN(const void *vmemh) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT;
|
||||
void *MEM_lockfree_reallocN_id(void *vmemh,
|
||||
size_t len,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(2);
|
||||
void *MEM_lockfree_recallocN_id(void *vmemh,
|
||||
size_t len,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(2);
|
||||
void *MEM_lockfree_callocN(size_t len, const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
void *MEM_lockfree_callocN(size_t len, const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
|
||||
void *MEM_lockfree_calloc_arrayN(size_t len,
|
||||
size_t size,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
|
||||
void *MEM_lockfree_mallocN(size_t len, const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
void *MEM_lockfree_mallocN(size_t len, const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
|
||||
void *MEM_lockfree_malloc_arrayN(size_t len,
|
||||
size_t size,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
|
||||
void *MEM_lockfree_mallocN_aligned(size_t len,
|
||||
size_t alignment,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(3);
|
||||
void MEM_lockfree_printmemlist_pydict(void);
|
||||
void MEM_lockfree_printmemlist(void);
|
||||
|
@ -161,27 +161,27 @@ void MEM_guarded_freeN(void *vmemh);
|
|||
void *MEM_guarded_dupallocN(const void *vmemh) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT;
|
||||
void *MEM_guarded_reallocN_id(void *vmemh,
|
||||
size_t len,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(2);
|
||||
void *MEM_guarded_recallocN_id(void *vmemh,
|
||||
size_t len,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(2);
|
||||
void *MEM_guarded_callocN(size_t len, const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
void *MEM_guarded_callocN(size_t len, const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
|
||||
void *MEM_guarded_calloc_arrayN(size_t len,
|
||||
size_t size,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
|
||||
void *MEM_guarded_mallocN(size_t len, const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
void *MEM_guarded_mallocN(size_t len, const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
|
||||
void *MEM_guarded_malloc_arrayN(size_t len,
|
||||
size_t size,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
|
||||
void *MEM_guarded_mallocN_aligned(size_t len,
|
||||
size_t alignment,
|
||||
const char *UNUSED(str)) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
const char *str) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_ALLOC_SIZE(1) ATTR_NONNULL(3);
|
||||
void MEM_guarded_printmemlist_pydict(void);
|
||||
void MEM_guarded_printmemlist(void);
|
||||
|
|
|
@ -75,7 +75,7 @@ bool BLI_edgehash_remove(EdgeHash *eh,
|
|||
void *BLI_edgehash_popkey(EdgeHash *eh, unsigned int v0, unsigned int v1) ATTR_WARN_UNUSED_RESULT;
|
||||
bool BLI_edgehash_haskey(EdgeHash *eh, unsigned int v0, unsigned int v1) ATTR_WARN_UNUSED_RESULT;
|
||||
int BLI_edgehash_len(EdgeHash *eh) ATTR_WARN_UNUSED_RESULT;
|
||||
void BLI_edgehash_clear_ex(EdgeHash *eh, EdgeHashFreeFP free_value, const uint UNUSED(reserve));
|
||||
void BLI_edgehash_clear_ex(EdgeHash *eh, EdgeHashFreeFP free_value, const uint reserve);
|
||||
void BLI_edgehash_clear(EdgeHash *eh, EdgeHashFreeFP free_value);
|
||||
|
||||
EdgeHashIterator *BLI_edgehashIterator_new(EdgeHash *eh) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT;
|
||||
|
|
|
@ -45,7 +45,7 @@ void BM_mesh_edgeloops_calc_normal(BMesh *bm, struct ListBase *eloops);
|
|||
void BM_mesh_edgeloops_calc_normal_aligned(BMesh *bm,
|
||||
struct ListBase *eloops,
|
||||
const float no_align[3]);
|
||||
void BM_mesh_edgeloops_calc_order(BMesh *UNUSED(bm), ListBase *eloops, const bool use_normals);
|
||||
void BM_mesh_edgeloops_calc_order(BMesh *bm, ListBase *eloops, const bool use_normals);
|
||||
|
||||
/* single edgeloop */
|
||||
struct BMEdgeLoopStore *BM_edgeloop_copy(struct BMEdgeLoopStore *el_store);
|
||||
|
|
|
@ -31,7 +31,7 @@ void BM_loop_interp_multires_ex(BMesh *bm,
|
|||
const int cd_loop_mdisp_offset);
|
||||
void BM_loop_interp_multires(BMesh *bm, BMLoop *l_dst, const BMFace *f_src);
|
||||
|
||||
void BM_face_interp_multires_ex(BMesh *UNUSED(bm),
|
||||
void BM_face_interp_multires_ex(BMesh *bm,
|
||||
BMFace *f_dst,
|
||||
const BMFace *f_src,
|
||||
const float f_dst_center[3],
|
||||
|
|
|
@ -513,7 +513,7 @@ struct GPUUniformBuf *workbench_material_ubo_alloc(WORKBENCH_PrivateData *wpd);
|
|||
void workbench_volume_engine_init(WORKBENCH_Data *vedata);
|
||||
void workbench_volume_cache_init(WORKBENCH_Data *vedata);
|
||||
void workbench_volume_cache_populate(WORKBENCH_Data *vedata,
|
||||
struct Scene *UNUSED(scene),
|
||||
struct Scene *scene,
|
||||
struct Object *ob,
|
||||
struct ModifierData *md,
|
||||
eV3DShadingColorType color_type);
|
||||
|
|
|
@ -471,7 +471,7 @@ void DRW_buffer_add_entry_array(DRWCallBuffer *callbuf, const void *attr[], uint
|
|||
} while (0)
|
||||
|
||||
/* Can only be called during iter phase. */
|
||||
uint32_t DRW_object_resource_id_get(Object *UNUSED(ob));
|
||||
uint32_t DRW_object_resource_id_get(Object *ob);
|
||||
|
||||
void DRW_shgroup_state_enable(DRWShadingGroup *shgroup, DRWState state);
|
||||
void DRW_shgroup_state_disable(DRWShadingGroup *shgroup, DRWState state);
|
||||
|
|
|
@ -255,9 +255,7 @@ void gpencil_to_keylist(struct bDopeSheet *ads,
|
|||
/* Grease Pencil Layer */
|
||||
void gpl_to_keylist(struct bDopeSheet *ads, struct bGPDlayer *gpl, struct DLRBT_Tree *keys);
|
||||
/* Mask */
|
||||
void mask_to_keylist(struct bDopeSheet *UNUSED(ads),
|
||||
struct MaskLayer *masklay,
|
||||
struct DLRBT_Tree *keys);
|
||||
void mask_to_keylist(struct bDopeSheet *ads, struct MaskLayer *masklay, struct DLRBT_Tree *keys);
|
||||
|
||||
/* ActKeyColumn API ---------------- */
|
||||
/* Comparator callback used for ActKeyColumns and cframe float-value pointer */
|
||||
|
|
|
@ -983,7 +983,7 @@ const struct uiWidgetColors *ui_tooltip_get_theme(void);
|
|||
|
||||
void ui_draw_widget_menu_back_color(const rcti *rect, bool use_shadow, const float color[4]);
|
||||
void ui_draw_widget_menu_back(const rcti *rect, bool use_shadow);
|
||||
void ui_draw_tooltip_background(const struct uiStyle *UNUSED(style), uiBlock *block, rcti *rect);
|
||||
void ui_draw_tooltip_background(const struct uiStyle *style, uiBlock *block, rcti *rect);
|
||||
|
||||
extern void ui_draw_but(const struct bContext *C,
|
||||
struct ARegion *region,
|
||||
|
|
|
@ -34,8 +34,8 @@ typedef void (*PanelDrawFn)(const bContext *, Panel *);
|
|||
|
||||
void gpencil_modifier_masking_panel_draw(Panel *panel, bool use_material, bool use_vertex);
|
||||
|
||||
void gpencil_modifier_curve_header_draw(const bContext *UNUSED(C), Panel *panel);
|
||||
void gpencil_modifier_curve_panel_draw(const bContext *UNUSED(C), Panel *panel);
|
||||
void gpencil_modifier_curve_header_draw(const bContext *C, Panel *panel);
|
||||
void gpencil_modifier_curve_panel_draw(const bContext *C, Panel *panel);
|
||||
|
||||
void gpencil_modifier_panel_end(struct uiLayout *layout, PointerRNA *ptr);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ extern "C" {
|
|||
#define CMP_SCALE_MAX 12000
|
||||
|
||||
bool cmp_node_poll_default(struct bNodeType *ntype, struct bNodeTree *ntree);
|
||||
void cmp_node_update_default(struct bNodeTree *UNUSED(ntree), struct bNode *node);
|
||||
void cmp_node_update_default(struct bNodeTree *ntree, struct bNode *node);
|
||||
void cmp_node_type_base(
|
||||
struct bNodeType *ntype, int type, const char *name, short nclass, short flag);
|
||||
|
||||
|
|
Loading…
Reference in New Issue