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:
parent
f3ff4f7bd3
commit
52339cdf5a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ struct tcp_segment {
|
||||||
const struct sockaddr *dst_addr;
|
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)
|
static char upper_if_set(char chr, bool set)
|
||||||
{
|
{
|
||||||
if (set) {
|
if (set) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue