Menu

#21 Borland Warnings in inifile.c

v1.3
open
nobody
Core (7)
5
2008-05-30
2005-03-06
No

Borland BCC32 compiler version 5.6.4 produces the
following warning when compiling inifile.c from the CVS.

! Warning W8001 ..\..\..\..\libmss\inifile.c 246:
Superfluous & with function in function dcfinifile_open

Here is the explanation from the Borland Help file:

W8001 Superfluous & with function
An address-of operator (&) is not needed with function
name; any such operators are discarded.

Discussion

  • Charles Brockman

    Logged In: YES
    user_id=250965

    Warning W8001 ..\..\..\..\libmss\inifile.c 246: Superfluous
    & with function in function dcfinifile_open

    I changed line 246 to
    dcflist_create(&file->list, destroy_item);

    Index: inifile.c

    RCS file: /cvsroot/libmss/libmss/inifile.c,v
    retrieving revision 1.9
    diff -r1.9 inifile.c
    246c246
    < dcflist_create(&file->list, &destroy_item);
    ---
    > dcflist_create(&file->list, destroy_item);

     
  • Laurynas Biveinis

    • assigned_to: lauras --> nobody
     

Log in to post a comment.