[Git][ghc/ghc][master] rts/IOManager: Drop dead code

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Dec 4 23:39:38 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
cad6fede by Ben Gamari at 2024-12-04T18:38:54-05:00
rts/IOManager: Drop dead code

This assignment is dead code as it occurs after all branches have
returned. Moreover, it can't possibly be relevant since the "available"
branch already sets `flag`.

Potentially fixes #25542.

- - - - -


1 changed file:

- rts/IOManager.c


Changes:

=====================================
rts/IOManager.c
=====================================
@@ -110,7 +110,6 @@ parseIOManagerFlag(const char *iomgrstr, IO_MANAGER_FLAG *flag)
 #else
         return IOManagerUnavailable;
 #endif
-        *flag = IO_MNGR_FLAG_MIO;
     }
     else if (strcmp("winio", iomgrstr) == 0) {
 #if defined(IOMGR_ENABLED_WINIO)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cad6fede4252aeff3a0a93e81c2188a825ab39c6

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cad6fede4252aeff3a0a93e81c2188a825ab39c6
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241204/de90687e/attachment.html>


More information about the ghc-commits mailing list