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 /include/sg_pr2serr.h | |
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 'include/sg_pr2serr.h')
-rw-r--r-- | include/sg_pr2serr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sg_pr2serr.h b/include/sg_pr2serr.h index 558f9cfc..71db2ec5 100644 --- a/include/sg_pr2serr.h +++ b/include/sg_pr2serr.h @@ -2,7 +2,7 @@ #define SG_PR2SERR_H /* - * Copyright (c) 2004-2015 Douglas Gilbert. + * Copyright (c) 2004-2016 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -10,7 +10,7 @@ #include <stdio.h> -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) int pr2serr(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); #else |