From 80e7651261edf8d1f5e63cfb6127def9804f8eae Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Fri, 24 Dec 2021 11:57:57 -0300 Subject: [PATCH] Fix warnings. --- examples/udr/Triggers.cpp | 2 -- src/dsql/metd.epp | 7 ------- src/jrd/vio.cpp | 12 ++++++------ 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/examples/udr/Triggers.cpp b/examples/udr/Triggers.cpp index 4e9bcca834..f397b9a373 100644 --- a/examples/udr/Triggers.cpp +++ b/examples/udr/Triggers.cpp @@ -234,8 +234,6 @@ FB_UDR_BEGIN_TRIGGER(replicate_persons) "select data_source from replicate_config where name = ?", SQL_DIALECT_CURRENT, NULL), status, statusVector); - const char* table = metadata->getTriggerTable(status); - // Skip the first exclamation point, separating the module name and entry point. const char* info = strchr(metadata->getEntryPoint(status), '!'); diff --git a/src/dsql/metd.epp b/src/dsql/metd.epp index 9eb1ea8528..bfb47f644e 100644 --- a/src/dsql/metd.epp +++ b/src/dsql/metd.epp @@ -63,13 +63,6 @@ using namespace Firebird; DATABASE DB = STATIC "yachts.lnk"; -static const UCHAR blr_bpb[] = -{ - isc_bpb_version1, - isc_bpb_source_type, 1, isc_blob_blr, - isc_bpb_target_type, 1, isc_blob_blr -}; - static void convert_dtype(TypeClause*, SSHORT); static void free_relation(dsql_rel*); diff --git a/src/jrd/vio.cpp b/src/jrd/vio.cpp index 8af88effdc..5443e920b6 100644 --- a/src/jrd/vio.cpp +++ b/src/jrd/vio.cpp @@ -238,7 +238,6 @@ inline void check_gbak_cheating_insupd(thread_db* tdbb, const jrd_rel* relation, inline void check_gbak_cheating_delete(thread_db* tdbb, const jrd_rel* relation) { const Attachment* const attachment = tdbb->getAttachment(); - const jrd_tra* const transaction = tdbb->getTransaction(); if (relation->isSystem() && attachment->isGbak()) { @@ -2527,8 +2526,6 @@ bool VIO_get_current(thread_db* tdbb, **************************************/ SET_TDBB(tdbb); - Attachment* const attachment = tdbb->getAttachment(); - #ifdef VIO_DEBUG jrd_rel* relation = rpb->rpb_relation; VIO_trace(DEBUG_TRACE, @@ -5195,12 +5192,15 @@ static void list_staying_fast(thread_db* tdbb, record_param* rpb, RecordStack& s } } - const TraNumber oldest_active = tdbb->getTransaction()->tra_oldest_active; + ///const TraNumber oldest_active = tdbb->getTransaction()->tra_oldest_active; while (temp.rpb_b_page) { - ULONG page = temp.rpb_page = temp.rpb_b_page; - USHORT line = temp.rpb_line = temp.rpb_b_line; + ///ULONG page = temp.rpb_page = temp.rpb_b_page; + ///USHORT line = temp.rpb_line = temp.rpb_b_line; + temp.rpb_page = temp.rpb_b_page; + temp.rpb_line = temp.rpb_b_line; + temp.rpb_record = NULL; if (temp.rpb_flags & rpb_delta)