Skip to content

Commit

Permalink
Fix linux warnings Wformat (#8361)
Browse files Browse the repository at this point in the history
* Fix linux warnings Wformat

* Remove duplication defines
  • Loading branch information
DmEye authored Dec 26, 2024
1 parent 566bebf commit 3bdaddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/yvalve/gds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
}

if (!found) {
sprintf(s, "unknown ISC error %ld", (SLONG) code); // TXNN
sprintf(s, "unknown ISC error %" SLONGFORMAT, (SLONG) code); // TXNN
}
}
}
Expand All @@ -1000,11 +1000,11 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
break;

case isc_arg_dos:
sprintf(s, "unknown dos error %ld", (SLONG) code); // TXNN
sprintf(s, "unknown dos error %" SLONGFORMAT, (SLONG) code); // TXNN
break;

case isc_arg_next_mach:
sprintf(s, "next/mach error %ld", (SLONG) code); // AP
sprintf(s, "next/mach error %" SLONGFORMAT, (SLONG) code); // AP
break;

case isc_arg_win32:
Expand All @@ -1016,7 +1016,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
s, bufsize, NULL))
#endif
{
sprintf(s, "unknown Win32 error %ld", (SLONG) code); // TXNN
sprintf(s, "unknown Win32 error %" SLONGFORMAT, (SLONG) code); // TXNN
}
break;

Expand Down

0 comments on commit 3bdaddf

Please sign in to comment.