Borland Warnings in inifile.c
Status: Inactive
Brought to you by:
lauras
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.
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);