Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ba6047b authored by Paul Bolle's avatar Paul Bolle Committed by David S. Miller
Browse files

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: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3c48ecc
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -288,6 +288,7 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag,
 * format CAPI IE as string
 * format CAPI IE as string
 */
 */


#ifdef CONFIG_GIGASET_DEBUG
static const char *format_ie(const char *ie)
static const char *format_ie(const char *ie)
{
{
	static char result[3 * MAX_FMT_IE_LEN];
	static char result[3 * MAX_FMT_IE_LEN];
@@ -313,6 +314,7 @@ static const char *format_ie(const char *ie)
	*--pout = 0;
	*--pout = 0;
	return result;
	return result;
}
}
#endif


/*
/*
 * emit DATA_B3_CONF message
 * emit DATA_B3_CONF message