Cleanup: quiet Clang compiler warnings
This commit is contained in:
@@ -1624,7 +1624,7 @@ static int sequencer_add_duplicate_exec(bContext *C, wmOperator * /*op*/)
|
||||
* This way, when pasted strips are renamed, curves are renamed with them. Finally, restore
|
||||
* original curves from backup.
|
||||
*/
|
||||
SeqAnimationBackup animation_backup = {0};
|
||||
SeqAnimationBackup animation_backup = {{nullptr}};
|
||||
SEQ_animation_backup_original(scene, &animation_backup);
|
||||
|
||||
Sequence *seq = static_cast<Sequence *>(duplicated_strips.first);
|
||||
@@ -2599,7 +2599,7 @@ static int sequencer_paste_exec(bContext *C, wmOperator *op)
|
||||
* curves from backup.
|
||||
*/
|
||||
|
||||
SeqAnimationBackup animation_backup = {0};
|
||||
SeqAnimationBackup animation_backup = {{nullptr}};
|
||||
SEQ_animation_backup_original(scene, &animation_backup);
|
||||
sequencer_paste_animation(C);
|
||||
|
||||
|
||||
@@ -177,14 +177,16 @@ const EnumPropertyItem rna_enum_snap_element_items[] = {
|
||||
{0, NULL, 0, NULL, NULL},
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_snap_element_base_items[] = {
|
||||
static const EnumPropertyItem rna_enum_snap_element_base_items[] = {
|
||||
RNA_SNAP_ELEMENTS_BASE,
|
||||
{0, NULL, 0, NULL, NULL},
|
||||
};
|
||||
|
||||
#ifndef RNA_RUNTIME
|
||||
/* Last two snap elements from #rna_enum_snap_element_items. */
|
||||
const EnumPropertyItem *rna_enum_snap_element_individual_items =
|
||||
static const EnumPropertyItem *rna_enum_snap_element_individual_items =
|
||||
&rna_enum_snap_element_items[ARRAY_SIZE(rna_enum_snap_element_items) - 3];
|
||||
#endif
|
||||
|
||||
const EnumPropertyItem rna_enum_snap_node_element_items[] = {
|
||||
{SCE_SNAP_MODE_GRID, "GRID", ICON_SNAP_GRID, "Grid", "Snap to grid"},
|
||||
|
||||
Reference in New Issue
Block a user