diff options
| author | Dan Albert <danalbert@google.com> | 2015-07-08 13:50:42 -0700 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2015-07-09 10:47:24 -0700 |
| commit | 459df8f3a14d4c614f0211049800cf7cad6d30ad (patch) | |
| tree | 29b1d8281e4355d70bf32b4efffa5e5a9350da2b /libcutils/socket_local_server_unix.cpp | |
| parent | a6241a0298de5e773ef113626ca4686f9c038868 (diff) | |
Turn on -Wformat-nonliteral.
Apparently there are two classes of this warning in clang.
-Wformat-security is only emitted for cases of
`func(nonliteral_fmt_string)` (no args), and -Wformat-nonliteral is
emitted for cases *with* arguments. For whatever reason, the latter
isn't included in -Wextra and must be manually enabled.
To make this more easily portable to Windows, move the existing
gnu_printf/__printf__ decision into base/macros.h as ATTRIBUTE_FORMAT.
Change-Id: I3b0990e1d1f0a2e9c13b32f5cd60478946cb5fc6
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions
