Skip to contentSkip to conversation

master - cleanup: drop unused attribute

PATCH Zdenek Kabelac 1 participant 1 message Nov 3, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1db4b81d5a1e7c85ab5928c9f6a62ec9565885df
Commit:        1db4b81d5a1e7c85ab5928c9f6a62ec9565885df
Parent:        4b4d19e3aa1da061fed35edb979e1ca2a29fb7ed
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Nov 2 10:55:19 2016 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Nov 3 12:43:09 2016 +0100

cleanup: drop unused attribute

In this function we pass args through so make the function header look the same as with _default_log().

---
 libdm/libdm-common.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
libdm/libdm-common.c +1 -2
index 5deb555..17f55ab 100644
@@ -137,8 +137,7 @@ static void _default_log_line(int level,
 
 __attribute__((format(printf, 5, 6)))
 static void _default_log_with_errno(int level,
-	    const char *file __attribute__((unused)),
-	    int line __attribute__((unused)), int dm_errno_or_class,
+	    const char *file, int line, int dm_errno_or_class,
 	    const char *f, ...)
 {
 	va_list ap;