diff --git a/dblib-Address-compiler-warning.patch b/dblib-Address-compiler-warning.patch new file mode 100644 index 0000000..6e1b060 --- /dev/null +++ b/dblib-Address-compiler-warning.patch @@ -0,0 +1,27 @@ +From 395e3db9f505322918999081981a212dc51c5cfc Mon Sep 17 00:00:00 2001 +From: "Aaron M. Ucko" +Date: Tue, 23 Oct 2018 11:05:20 -0400 +Subject: [PATCH] dblib: Address compiler warning + +Remove unused constant. + +Co-Authored-By: Pavel Ivanov +--- + 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 + diff --git a/freetds.spec b/freetds.spec index 4a96d32..6efea98 100644 --- a/freetds.spec +++ b/freetds.spec @@ -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 - 1.00.38-11 +- dblib: Address compiler warning + * Thu Dec 28 2023 fandehui - 1.00.38-10 - Fix some collation encoding detection