mark strftime calls using struct tm in e_slider as safe

disable -Wformat-nonliteral temporarily
This commit is contained in:
Mike Blumenkrantz 2017-01-06 12:56:22 -05:00
parent f011db58ce
commit 574bf220d5
1 changed files with 2 additions and 1 deletions

View File

@ -358,8 +358,9 @@ _e_smart_format_update(E_Smart_Data *sd)
if (sd->format)
{
char buf[256];
DISABLE_WARNING(format-nonliteral, format-nonliteral, format-nonliteral)
snprintf(buf, sizeof(buf), sd->format, sd->val);
ENABLE_WARNING(format-nonliteral, format-nonliteral, format-nonliteral)
edje_object_part_text_set(sd->edje_obj, "e.text.label", buf);
}
}