1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Fixed const assignment giving compiler warning in C library.

Fixed by Adrian Vondendriesch.
This commit is contained in:
Adrian Vondendriesch 2016-12-13 08:22:36 -05:00 committed by David Steele
parent 8e3464da80
commit 4e1b74688d
4 changed files with 17 additions and 3 deletions

View File

@ -133,6 +133,20 @@
</contributor-list>
<release-list>
<release date="XXXX-XX-XX" version="1.13dev" title="UNDER DEVELOPMENT">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-contributor id="vondendriesch.adrian"/>
</release-item-contributor-list>
<p>Fixed const assignment giving compiler warning in C library.</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<release date="2016-12-12" version="1.12" title="Page Checksums, Configuration, and Bug Fixes">
<release-core-list>
<p><b>IMPORTANT NOTE</b>: In prior releases it was possible to specify options on the command-line that were invalid for the current command without getting an error. An error will now be generated for invalid options so it is important to carefully check command-line options in your environment to prevent disruption.</p>

View File

@ -35,7 +35,7 @@ use constant BACKREST_BIN => abs_path(
# Defines the current version of the BackRest executable. The version number is used to track features but does not affect what
# repositories or manifests can be read - that's the job of the format number.
#-----------------------------------------------------------------------------------------------------------------------------------
use constant BACKREST_VERSION => '1.12';
use constant BACKREST_VERSION => '1.13dev';
push @EXPORT, qw(BACKREST_VERSION);
# Format Format Number

View File

@ -11,7 +11,7 @@ use AutoLoader;
our @ISA = qw(Exporter);
# Library version (add .999 during development)
our $VERSION = '1.12';
our $VERSION = '1.13.999';
sub libCVersion {return $VERSION};

View File

@ -218,7 +218,7 @@ pageChecksumBuffer(const char *szPageBuffer, uint32 uiBufferSize, uint32 uiBlock
// Loop through all pages in the buffer
for (uint32 uiIndex = 0; uiIndex < uiBufferSize / uiPageSize; uiIndex++)
{
char *szPage = szPageBuffer + (uiIndex * uiPageSize);
const char *szPage = szPageBuffer + (uiIndex * uiPageSize);
// Return false if the checksums do not match
if (((PageHeader)szPage)->pd_checksum != pageChecksum(szPage, uiBlockNoStart + uiIndex, uiPageSize))