
#47: Void functions produce a "defined but not used" warning for the result --------------------+------------------------------------------------------- Reporter: guest | Type: defect Status: new | Priority: normal Milestone: | Component: general Version: 0.16.0 | Keywords: --------------------+------------------------------------------------------- Declaring a {# fun ... #} with return type `()' leads to the following warning from GHC: Warning: Defined but not used: `res' Please consider either using res or declaring it as _ in this case, to prevent the warning. -- Ticket URL: http://hackage.haskell.org/trac/c2hs/ticket/47 c2hs http://www.cse.unsw.edu.au/~chak/haskell/c2hs/ C->Haskell, An Interface Generator for Haskell