Skip to content

Commit 6ba6047

Browse files
pebolledavem330
authored andcommitted
gigaset: silence GCC warning for unused 'format_ie'
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>
1 parent f3c48ec commit 6ba6047

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/isdn/gigaset/capi.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag,
288288
* format CAPI IE as string
289289
*/
290290

291+
#ifdef CONFIG_GIGASET_DEBUG
291292
static const char *format_ie(const char *ie)
292293
{
293294
static char result[3 * MAX_FMT_IE_LEN];
@@ -313,6 +314,7 @@ static const char *format_ie(const char *ie)
313314
*--pout = 0;
314315
return result;
315316
}
317+
#endif
316318

317319
/*
318320
* emit DATA_B3_CONF message

0 commit comments

Comments
 (0)