re PR c++/64629 (-Wformat-security warns with const char *const vars)
authorJason Merrill <jason@redhat.com>
Wed, 21 Jan 2015 20:15:27 +0000 (15:15 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 21 Jan 2015 20:15:27 +0000 (15:15 -0500)
commit6875457f349eebb3d13d780e909b131bfff87e16
tree334f6df3b4d1b74ca05e70878a04ce65b928fe88
parent4195393b3ce259c11e0fb7ea9985ca4357b37e1a
re PR c++/64629 (-Wformat-security warns with const char *const vars)

PR c++/64629
* c-format.c (check_format_arg): Call decl_constant_value.

From-SVN: r219964
gcc/c-family/ChangeLog
gcc/c-family/c-format.c
gcc/testsuite/g++.dg/warn/Wformat-1.C [new file with mode: 0644]