DBio.c:1604:65: warning: too many arguments in call to 'dbReadOpen'

DBio.c:1604:52: warning: expression which evaluates to zero treated as
 a null pointer constant of type 'int *' [-Wnon-literal-null-conversion]

DBOpenOnly() function only has one use which always passed name==NULL.

clang18 default warning cleanup
This commit is contained in:
Darryl L. Miles 2024-10-04 18:40:24 +01:00 committed by Tim Edwards
parent 59bfe8f6c0
commit b723dc15d8
1 changed files with 1 additions and 1 deletions

View File

@ -1598,7 +1598,7 @@ DBOpenOnly(cellDef, name, setFileName, errptr)
*/
int *errptr; /* Pointer to int to hold error value */
{
dbReadOpen(cellDef, name != NULL, setFileName, FALSE, errptr);
dbReadOpen(cellDef, setFileName, FALSE, errptr);
}
/*