aboutsummaryrefslogtreecommitdiff
path: root/lib/sg_cmds_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sg_cmds_basic.c')
-rw-r--r--lib/sg_cmds_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sg_cmds_basic.c b/lib/sg_cmds_basic.c
index 68dbd843..d98096b4 100644
--- a/lib/sg_cmds_basic.c
+++ b/lib/sg_cmds_basic.c
@@ -63,7 +63,7 @@ sg_cmds_version()
return version_str;
}
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
static int pr2ws(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2)));
#else