forked from enlightenment/enlightenment
mark strftime calls using struct tm in e_slider as safe
disable -Wformat-nonliteral temporarily
This commit is contained in:
parent
f011db58ce
commit
574bf220d5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue