
#8289: unused variable in rts/posix/OSMem.c getPageSize ------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- bgamari pointed this out on IRC. The static variable `pageSize` is never set, so every `getPageSize` call does a system call. There should be a line `pageSize = ret;` before `return ret;`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8289 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler