From 3bdaddfb5c89ac2ecd2c563f7b2492ae0fad4e55 Mon Sep 17 00:00:00 2001 From: Dmitry <47507037+DmEye@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:41:16 +0300 Subject: [PATCH] Fix linux warnings Wformat (#8361) * Fix linux warnings Wformat * Remove duplication defines --- src/yvalve/gds.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yvalve/gds.cpp b/src/yvalve/gds.cpp index a1f13708181..7071c8cec21 100644 --- a/src/yvalve/gds.cpp +++ b/src/yvalve/gds.cpp @@ -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 } } } @@ -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: @@ -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;