diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-01-09 16:42:19 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-09 16:42:19 -0500 |
commit | 079a9c8229692c8c68899a9ab06693f830c1a091 (patch) | |
tree | bd5a431d75c56e736e0e7c638ecbfb22d115ad94 /src/scsi_id | |
parent | 46029d273782b441895b23bf5720ebe23d42351f (diff) |
Add more _printf_'s for format-nonliterals
Clang is a bit more strict wrt format-nonliterals:
http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking
Adding these extra printf attributes also makes gcc able to find more
problems. E.g. this patch uncovers a format issue in udev-builtin-path_id.c
Some parts looked intetional about breaking the format-nonliteral check.
I added some supression for warnings there.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/scsi_id')
-rw-r--r-- | src/scsi_id/scsi_id.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scsi_id/scsi_id.c b/src/scsi_id/scsi_id.c index 230fa2b782..58a54d4a63 100644 --- a/src/scsi_id/scsi_id.c +++ b/src/scsi_id/scsi_id.c @@ -67,6 +67,7 @@ static char model_enc_str[256]; static char revision_str[16]; static char type_str[16]; +_printf_(6,0) static void log_fn(struct udev *udev, int priority, const char *file, int line, const char *fn, const char *format, va_list args) |