Skip to content

Commit f8c2418

Browse files
authored
getNatBehaviorStr: Fix function return value compile error (#2114)
- Following error was seen: `In function 'getNatBehaviorStr': NatBehaviorDiscovery.c:385:1: error: control reaches end of non-void function [-Werror=return-type]` - Fixed this by returning `NAT_BEHAVIOR_NONE_STR`
1 parent 6cd6426 commit f8c2418

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/source/Ice/NatBehaviorDiscovery.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,5 @@ PCHAR getNatBehaviorStr(NAT_BEHAVIOR natBehavior)
381381
case NAT_BEHAVIOR_PORT_DEPENDENT:
382382
return NAT_BEHAVIOR_PORT_DEPENDENT_STR;
383383
}
384+
return NAT_BEHAVIOR_NONE_STR;
384385
}

0 commit comments

Comments
 (0)