diff --git a/src/burp/backup.epp b/src/burp/backup.epp index fccf58b062..786b802aed 100644 --- a/src/burp/backup.epp +++ b/src/burp/backup.epp @@ -1528,7 +1528,7 @@ void put_data(burp_rel* relation, ReadRelationReq* request) xdr_buffer.lstr_address = NULL; RCRD_LENGTH record_length = reqMeta->m_outRecLen; - FB_UINT64 records = 0; + while (true) { if (task->isStopped()) @@ -1543,8 +1543,6 @@ void put_data(burp_rel* relation, ReadRelationReq* request) if (!request->eof()) break; - records++; - put(tdgbl, (UCHAR) rec_data); put_int32(att_data_length, record_length); const UCHAR* p; diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index 35cfcd8193..0ee8be4492 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -143,7 +143,6 @@ static ULONG memory_init(thread_db*, BufferControl*, ULONG); static void page_validation_error(thread_db*, win*, SSHORT); static void purgePrecedence(BufferControl*, BufferDesc*); static SSHORT related(BufferDesc*, const BufferDesc*, SSHORT, const ULONG); -static bool writeable(BufferDesc*); static bool is_writeable(BufferDesc*, const ULONG); static int write_buffer(thread_db*, BufferDesc*, const PageNumber, const bool, FbStatusVector* const, const bool); @@ -4577,6 +4576,7 @@ static SSHORT related(BufferDesc* low, const BufferDesc* high, SSHORT limit, con } +#ifdef NOT_USED_OR_REPLACED static inline bool writeable(BufferDesc* bdb) { /************************************** @@ -4611,6 +4611,7 @@ static inline bool writeable(BufferDesc* bdb) const ULONG mark = get_prec_walk_mark(bcb); return is_writeable(bdb, mark); } +#endif // NOT_USED_OR_REPLACED static bool is_writeable(BufferDesc* bdb, const ULONG mark) diff --git a/src/jrd/recsrc/SortedStream.cpp b/src/jrd/recsrc/SortedStream.cpp index 936161bcb6..3cc63a2244 100644 --- a/src/jrd/recsrc/SortedStream.cpp +++ b/src/jrd/recsrc/SortedStream.cpp @@ -179,7 +179,6 @@ Sort* SortedStream::init(thread_db* tdbb) const Request* const request = tdbb->getRequest(); m_next->open(tdbb); - ULONG records = 0; // Initialize for sort. If this is really a project operation, // establish a callback routine to reject duplicate records. @@ -198,8 +197,6 @@ Sort* SortedStream::init(thread_db* tdbb) const while (m_next->getRecord(tdbb)) { - records++; - // "Put" a record to sort. Actually, get the address of a place // to build a record.