freetds/dblib-Address-compiler-warning.patch
fandehui 3405cf3eeb dblib: Address compiler warning
Remove unused constant.

Signed-off-by: fandehui <fandehui@xfusion.com>
(cherry picked from commit 26624f73d7f1886740ee1d85b666c35ec7675ae2)
2023-12-29 15:09:49 +08:00

28 lines
794 B
Diff

From 395e3db9f505322918999081981a212dc51c5cfc Mon Sep 17 00:00:00 2001
From: "Aaron M. Ucko" <ucko@ncbi.nlm.nih.gov>
Date: Tue, 23 Oct 2018 11:05:20 -0400
Subject: [PATCH] dblib: Address compiler warning
Remove unused constant.
Co-Authored-By: Pavel Ivanov <ivanovp@ncbi.nlm.nih.gov>
---
src/dblib/dblib.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/dblib/dblib.c b/src/dblib/dblib.c
index 9b533487..00aba09f 100644
--- a/src/dblib/dblib.c
+++ b/src/dblib/dblib.c
@@ -423,7 +423,6 @@ static const DBREAL null_REAL = 0;
static const DBCHAR null_CHAR = '\0';
static const DBVARYCHAR null_VARYCHAR = { 0, {0} };
-static const DBBINARY null_BINARY = 0;
static const DBDATETIME null_DATETIME = { 0, 0 };
static const DBDATETIME4 null_SMALLDATETIME = { 0, 0 };
--
2.27.0