#10 remove "function declaration isn't a prototype" under Darwin

closed-fixed
nobody
None
5
2006-04-26
2006-04-25
No

In Python HEAD there are several warnings from gcc
4.0.1 on OS X 10.4.6 of the form, "function declaration
isn't a prototype". These all stem from function
parameters that are functions, but that are defined
without arguments.

if you fill in the argument parameter list for those
arguments that are functions (going from ``void
(*fn)()`` to ``void (*fn)(void)``, for instance) the
warnings go away.

The attached patch removes the warnings. It was
created against ctypes in Python HEAD (rev. 45694M).

Discussion

  • Brett Cannon

    Brett Cannon - 2006-04-25

    shut up warnings on OS X w/ gcc about fxn arguments in parameter lists

     
  • Thomas Heller

    Thomas Heller - 2006-04-25

    Logged In: YES
    user_id=11105

    Thanks, fixed in ctypes CVS and Python SVN.

     
  • Brett Cannon

    Brett Cannon - 2006-04-26

    Logged In: YES
    user_id=357491

    Should this be closed then?

     
  • Thomas Heller

    Thomas Heller - 2006-04-26

    Logged In: YES
    user_id=11105

    Yes, of course. I forgot.

     
  • Thomas Heller

    Thomas Heller - 2006-04-26
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks