[vlc-commits] [Git][videolan/vlc][master] network: explicitly mark unreachable code

François Cartegnie (@fcartegnie) gitlab at videolan.org
Sat Jan 21 12:36:52 UTC 2023



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
4f9b8695 by Steve Lhomme at 2023-01-21T11:54:51+00:00
network: explicitly mark unreachable code

We can't exit the loop without a return.

- - - - -


1 changed file:

- src/network/io.c


Changes:

=====================================
src/network/io.c
=====================================
@@ -361,7 +361,7 @@ int net_Accept(vlc_object_t *obj, int *fds)
             return fd;
         }
     }
-    return -1;
+    vlc_assert_unreachable();
 }
 
 ssize_t (net_Read)(vlc_object_t *restrict obj, int fd,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4f9b8695a757ff6cc548310080becfe574c565ef

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4f9b8695a757ff6cc548310080becfe574c565ef
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list