diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2016-04-05 18:40:47 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2016-04-05 18:40:47 +0000 |
commit | 25df479f5cc5d37416d07d7f0b561372e4a9bf3d (patch) | |
tree | b41c6450af71516b5cdf4c058e081512c2cb0cd5 /lib/sg_cmds_extra.c | |
parent | 63a8ecf3099475c7560036054dae728a1869685e (diff) | |
download | sg3_utils-25df479f5cc5d37416d07d7f0b561372e4a9bf3d.tar.gz |
more clang clean ups; allow clang to check printf() style arguments
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@690 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_cmds_extra.c')
-rw-r--r-- | lib/sg_cmds_extra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sg_cmds_extra.c b/lib/sg_cmds_extra.c index 40fd136d..cf2fc71f 100644 --- a/lib/sg_cmds_extra.c +++ b/lib/sg_cmds_extra.c @@ -91,7 +91,7 @@ #define REPORT_REFERRALS_SA 0x13 #define EXTENDED_COPY_LID1_SA 0x0 -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) static int pr2ws(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); #else |