commit | 34a9886a177f9e22930cec7eccda88df4a9f4838 | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Tue Feb 28 10:09:45 2017 +1100 |
committer | David Gibson <david@gibson.dropbear.id.au> | Tue Feb 28 10:09:45 2017 +1100 |
tree | ef2a5d3aaf066626dd2022e54d72637b28aa2e63 | |
parent | f72508e2b6ca16016862b937ca1584b282fa637c [diff] |
Add printf format attributes When compiling with gcc, we already include the attribute on check_msg() to give compiler warnings about mismatches between printf() like format strings and the corresponding arguments. This patch adds similar attributes for lexical_error() and die(). Suggested-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>