]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gigaset: silence GCC warning for unused 'format_ie'
authorPaul Bolle <pebolle@tiscali.nl>
Sat, 14 Jul 2012 23:11:55 +0000 (23:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 06:23:53 +0000 (23:23 -0700)
Building Gigaset's CAPI support without Gigaset's debugging enabled
triggers this GCC warning:
    'format_ie' defined but not used [-Wunused-function]

Silence this warning by wrapping format_ie() in an "#ifdef
CONFIG_GIGASET_DEBUG" and "#endif" pair.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/capi.c

index 27e4a3e21d6437a662fb5981090183119c4caa0a..68452b768da23dc31c5409b113446802476886c2 100644 (file)
@@ -288,6 +288,7 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag,
  * format CAPI IE as string
  */
 
+#ifdef CONFIG_GIGASET_DEBUG
 static const char *format_ie(const char *ie)
 {
        static char result[3 * MAX_FMT_IE_LEN];
@@ -313,6 +314,7 @@ static const char *format_ie(const char *ie)
        *--pout = 0;
        return result;
 }
+#endif
 
 /*
  * emit DATA_B3_CONF message