dblib: Address compiler warning

Remove unused constant.

Signed-off-by: fandehui <fandehui@xfusion.com>
(cherry picked from commit 26624f73d7f1886740ee1d85b666c35ec7675ae2)
This commit is contained in:
fandehui 2023-12-29 11:43:39 +08:00 committed by openeuler-sync-bot
parent b003cb98ac
commit 3405cf3eeb
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,27 @@
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

View File

@ -1,7 +1,7 @@
Name: freetds
Summary: Implementation of the TDS (Tabular DataStream) protocol
Version: 1.00.38
Release: 10
Release: 11
License: LGPLv2+ and GPLv2+
URL: http://www.freetds.org/
@ -10,6 +10,7 @@ Source1: freetds-tds_sysdep_public.h
Patch0: CVE-2019-13508.patch
Patch1: ctlib-Fix-cs_will_convert.patch
Patch2: Fix-some-collation-encoding-detection.patch
Patch3: dblib-Address-compiler-warning.patch
BuildRequires: unixODBC-devel readline-devel gnutls-devel krb5-devel
BuildRequires: libgcrypt-devel libtool doxygen docbook-style-dsssl
@ -122,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Dec 29 2023 fandehui <fandehui@xfusion.com> - 1.00.38-11
- dblib: Address compiler warning
* Thu Dec 28 2023 fandehui <fandehui@xfusion.com> - 1.00.38-10
- Fix some collation encoding detection