DBWelement.c: passing argument 1 of 'TxPrintf' from incompatible pointer type

GCC14 --without-tk --without-tcl
Related issue: https://github.com/RTimothyEdwards/magic/issues/323
This commit is contained in:
Darryl L. Miles 2024-10-02 06:59:00 +01:00 committed by Tim Edwards
parent 23930909b1
commit c90bde4961
1 changed files with 6 additions and 6 deletions

View File

@ -630,7 +630,7 @@ DBWElementNames()
HashEntry *he;
#ifndef MAGIC_WRAPPER
TxPrintf(stdout, "Known elements:");
TxPrintf("Known elements:");
#endif
HashStartSearch(&hs);
@ -641,13 +641,13 @@ DBWElementNames()
#ifdef MAGIC_WRAPPER
Tcl_AppendElement(magicinterp, he->h_key.h_name);
#else
TxPrintf(stdout, " %s", he->h_key.h_name);
TxPrintf(" %s", he->h_key.h_name);
#endif
}
}
#ifndef MAGIC_WRAPPER
TxPrintf(stdout, "/n");
TxPrintf("/n");
#endif
}
@ -672,7 +672,7 @@ DBWElementInbox(area)
int sqdist;
#ifndef MAGIC_WRAPPER
TxPrintf(stdout, "Element(s) inside box: ");
TxPrintf("Element(s) inside box: ");
#endif
HashStartSearch(&hs);
@ -685,14 +685,14 @@ DBWElementInbox(area)
#ifdef MAGIC_WRAPPER
Tcl_AppendElement(magicinterp, he->h_key.h_name);
#else
TxPrintf(stdout, " %s", he->h_key.h_name);
TxPrintf(" %s", he->h_key.h_name);
#endif
}
}
}
#ifndef MAGIC_WRAPPER
TxPrintf(stdout, "/n");
TxPrintf("/n");
#endif
}