You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Remove *MP() macros variants.
Adding a dummy column which is always set by the P() macro allows a single macro to be used for parameters or no parameters without violating C's prohibition on the {} initializer. -Wmissing-field-initializers remains disabled because it still gives wildly different results between versions of gcc.
This commit is contained in:
@ -129,12 +129,12 @@ backupFile(
|
||||
// will remove it from the manifest)
|
||||
if (result.backupCopyResult == backupCopyResultSkip)
|
||||
{
|
||||
storageRemoveNP(storageRepoWrite(), repoPathFile);
|
||||
storageRemoveP(storageRepoWrite(), repoPathFile);
|
||||
}
|
||||
else if (!delta || pgFileMatch)
|
||||
{
|
||||
// Generate checksum/size for the repo file
|
||||
IoRead *read = storageReadIo(storageNewReadNP(storageRepo(), repoPathFile));
|
||||
IoRead *read = storageReadIo(storageNewReadP(storageRepo(), repoPathFile));
|
||||
|
||||
if (cipherType != cipherTypeNone)
|
||||
{
|
||||
@ -243,7 +243,7 @@ backupFile(
|
||||
storageFeature(storageRepo(), storageFeatureCompress)) ||
|
||||
result.backupCopyResult == backupCopyResultChecksum)
|
||||
{
|
||||
result.repoSize = storageInfoNP(storageRepo(), repoPathFile).size;
|
||||
result.repoSize = storageInfoP(storageRepo(), repoPathFile).size;
|
||||
}
|
||||
}
|
||||
MEM_CONTEXT_TEMP_END();
|
||||
|
Reference in New Issue
Block a user