silent warning in GCC 7 (switch/case fallthrough)

This commit is contained in:
Thomas Bernard 2019-05-20 21:59:41 +02:00
parent 585a1d64e2
commit f89d01d06a
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $Id: upnpevents.c,v 1.42 2019/04/09 20:04:34 nanard Exp $ */
/* $Id: upnpevents.c,v 1.43 2019/05/20 19:59:21 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
@ -583,6 +583,9 @@ void upnpevents_selectfds(fd_set *readset, fd_set *writeset, int * max_fd)
upnp_event_notify_connect(obj);
if(obj->state != EConnecting)
break;
#if defined(__GNUC__) && (__GNUC__ >= 7)
__attribute__ ((fallthrough));
#endif
case EConnecting:
case ESending:
FD_SET(obj->s, writeset);