net: tcp: Avoid unused variable compiler warning

If TCP debugging is enabled but if the loglevel is set to lower
than 4, then compiler prints warning about unused flags variable
in net_tcp_trace().

Change-Id: I2e663644b50fe97b75088202e21b286aa010953e
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-04-20 12:16:53 +03:00
commit 52339cdf5a

View file

@ -62,7 +62,7 @@ struct tcp_segment {
const struct sockaddr *dst_addr;
};
#if defined(CONFIG_NET_DEBUG_TCP)
#if defined(CONFIG_NET_DEBUG_TCP) && (CONFIG_SYS_LOG_NET_BUF_LEVEL > 2)
static char upper_if_set(char chr, bool set)
{
if (set) {