#8 readtags.h prototypes erroneous

closed-wont-fix
None
5
2001-12-22
2001-12-13
No

There are a few function prototypes in readtags.h that
do not match the function definition given in readtags.c.

Here is the general problem:

extern tagResult tagsFindNext(tagEntry *entry);

tagResult tagsFindNext(tagEntry *const entry)
{
...
}

Discussion

  • diff file that corrects this issue

     
    Attachments
  • Darren Hiebert
    Darren Hiebert
    2001-12-15

    Logged In: YES
    user_id=38016

    The "const" declaration is acceptable code to all compilers
    I have encountered. It also suprises me that you should see
    a warning for this bug not throughout the code, as "const"
    arguments appear all over the place. I need to know what
    system/compiler you are using.

     
  • Logged In: YES
    user_id=138003

    This was compiled using IRIX 5.3's standard "cc" compiler.

     
  • Darren Hiebert
    Darren Hiebert
    2001-12-22

    • assigned_to: nobody --> dhiebert
    • status: open --> closed-wont-fix
     
  • Darren Hiebert
    Darren Hiebert
    2001-12-22

    Logged In: YES
    user_id=38016

    These warnings are due to improper handling of "const"
    qualifiers by the IRIX 5.x compiler. This problem does not
    exist in IRIX 6.5 compilers. Because of the value of using
    these "const" qualifiers, I do not wish to remove them from
    the source code.