Menu

#133 Using ILvoid as the only function argument is broken

closed-accepted
None
5
2007-06-02
2007-05-21
freundlich
No

I recently tried to compile 'devil' using gcc-4.2.0. It complains about the use of a typedef to void (namely ILvoid) to denote that a function doesn't receive any arguments like in "ILvoid f(ILvoid)". This is ill formed and should at least be changed to a plain void like in
"ILvoid f(void)". Using ILvoid as a return type is fine although it is ugly and doesn't serve any purpose as void will never change.

Discussion

  • freundlich

    freundlich - 2007-05-26

    A patch to fix it.

     
  • freundlich

    freundlich - 2007-05-26

    Logged In: YES
    user_id=1595317
    Originator: YES

    File Added: devil_void.patch

     
  • Anonymous

    Anonymous - 2007-06-02
    • assigned_to: nobody --> darkyojimbo
    • status: open --> closed-accepted
     

Log in to post a comment.