Menu

#39 plflt needs to explicitly return 0 on success

closed-fixed
None
5
2006-11-03
2006-10-31
Anonymous
No

bindings/f95/plflt.c declares "void main", and with the
Sun Studio 9 compiler on SPARC the resulting executable
terminates with a return code 1, which make interprets
as an error.

Either the makefile needs an ||true or plflt.c should
explicitly return 0. The latter seems preferable. Patch
attached.

Sergio Gelato <Sergio.Gelato@astro.su.se>

Discussion

  • Nobody/Anonymous

     
  • Arjen Markus

    Arjen Markus - 2006-10-31

    Logged In: YES
    user_id=400048

    Thanks for reporting this. I have set the type of main() to
    int and it finishes with "return 0" now.

     
  • Arjen Markus

    Arjen Markus - 2006-11-03

    Logged In: YES
    user_id=400048

    Closed this bug report

     
  • Arjen Markus

    Arjen Markus - 2006-11-03
    • assigned_to: nobody --> arjenmarkus
    • status: open --> closed-fixed
     

Log in to post a comment.