diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-12-14 13:09:07 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-12-14 13:32:22 +0100 |
commit | 9091e686f43184065381aa71929e3df36a4ea2e1 (patch) | |
tree | 37fe0c888a655bcf2d976411f21c068c300abbae /src/libudev | |
parent | event: some snake-oil to speed up impossible error checks (diff) | |
download | systemd-9091e686f43184065381aa71929e3df36a4ea2e1.tar.xz systemd-9091e686f43184065381aa71929e3df36a4ea2e1.zip |
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.
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c index bc73a5a08c..e1ba82febf 100644 --- a/src/libudev/libudev.c +++ b/src/libudev/libudev.c @@ -65,6 +65,7 @@ void udev_log(struct udev *udev, va_end(args); } +_printf_(6,0) static void log_stderr(struct udev *udev, int priority, const char *file, int line, const char *fn, const char *format, va_list args) |