fix some warnings (-Wdeprecated-non-prototype, -Wparentheses-equality)

This commit is contained in:
stefan schippers 2025-02-12 03:14:45 +01:00
parent bd40674f34
commit bc293a1d8f
3 changed files with 4 additions and 4 deletions

View File

@ -332,7 +332,7 @@ void backannotate_at_cursor_b_pos(xRect *r, Graph_ctx *gr)
cnt = 0;
}
if(xx >= start && xx <= end) {
if((dataset == sweepvar_wrap)) {
if(dataset == sweepvar_wrap) {
dbg(1, "xx=%g cursor2=%g first=%d last=%d start=%g end=%g p=%d wrap=%d sweepvar_wrap=%d ofs=%d\n",
xx, cursor2, first, last, start, end, p, wrap, sweepvar_wrap, ofs);
if(first == -1) first = p;

View File

@ -16,7 +16,7 @@ static int dbglev = 1;
struct symrec
{
char *name; /* name of symbol */
double (*fnctptr)(); /* value of a FNCT */
double (*fnctptr)(double); /* value of a FNCT */
struct symrec *next; /* link field */
};

View File

@ -2158,7 +2158,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
if(argc > 2 ) {
what = atoi(argv[2]);
}
if((xctx->semaphore == 0)) go_back(what);
if(xctx->semaphore == 0) go_back(what);
Tcl_ResetResult(interp);
}
@ -3356,7 +3356,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
"-message {Please Set netlisting mode (Options menu)}");
tclsetboolvar("keep_symbols", save_keep);
if( (erc == 0) ) {
if(erc == 0) {
my_strncpy(xctx->netlist_name, "", S(xctx->netlist_name));
}
}