Skip to content

Commit 3bdaddf

Browse files
authored
Fix linux warnings Wformat (#8361)
* Fix linux warnings Wformat * Remove duplication defines
1 parent 566bebf commit 3bdaddf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/yvalve/gds.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
975975
}
976976

977977
if (!found) {
978-
sprintf(s, "unknown ISC error %ld", (SLONG) code); // TXNN
978+
sprintf(s, "unknown ISC error %" SLONGFORMAT, (SLONG) code); // TXNN
979979
}
980980
}
981981
}
@@ -1000,11 +1000,11 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
10001000
break;
10011001

10021002
case isc_arg_dos:
1003-
sprintf(s, "unknown dos error %ld", (SLONG) code); // TXNN
1003+
sprintf(s, "unknown dos error %" SLONGFORMAT, (SLONG) code); // TXNN
10041004
break;
10051005

10061006
case isc_arg_next_mach:
1007-
sprintf(s, "next/mach error %ld", (SLONG) code); // AP
1007+
sprintf(s, "next/mach error %" SLONGFORMAT, (SLONG) code); // AP
10081008
break;
10091009

10101010
case isc_arg_win32:
@@ -1016,7 +1016,7 @@ static SLONG safe_interpret(char* const s, const FB_SIZE_T bufsize,
10161016
s, bufsize, NULL))
10171017
#endif
10181018
{
1019-
sprintf(s, "unknown Win32 error %ld", (SLONG) code); // TXNN
1019+
sprintf(s, "unknown Win32 error %" SLONGFORMAT, (SLONG) code); // TXNN
10201020
}
10211021
break;
10221022

0 commit comments

Comments
 (0)