You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-25 00:16:54 +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:
@ -187,7 +187,7 @@ testRun(void)
|
||||
// *****************************************************************************************************************************
|
||||
if (testBegin("protocolRemoteParam()"))
|
||||
{
|
||||
storagePutNP(storageNewWriteNP(storageTest, strNew("pgbackrest.conf")), bufNew(0));
|
||||
storagePutP(storageNewWriteP(storageTest, strNew("pgbackrest.conf")), bufNew(0));
|
||||
|
||||
StringList *argList = strLstNew();
|
||||
strLstAddZ(argList, "pgbackrest");
|
||||
@ -859,7 +859,7 @@ testRun(void)
|
||||
// Start protocol with local encryption settings
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
storagePut(
|
||||
storageNewWriteNP(storageTest, strNew("pgbackrest.conf")),
|
||||
storageNewWriteP(storageTest, strNew("pgbackrest.conf")),
|
||||
BUFSTRDEF(
|
||||
"[global]\n"
|
||||
"repo1-cipher-type=aes-256-cbc\n"
|
||||
@ -888,7 +888,7 @@ testRun(void)
|
||||
// Start protocol with remote encryption settings
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
storagePut(
|
||||
storageNewWriteNP(storageTest, strNew("pgbackrest.conf")),
|
||||
storageNewWriteP(storageTest, strNew("pgbackrest.conf")),
|
||||
BUFSTRDEF(
|
||||
"[global]\n"
|
||||
"repo1-cipher-type=aes-256-cbc\n"
|
||||
|
Reference in New Issue
Block a user