Unbreak build due to defined but not used warning from ensureMacro()

Warning introduced in commit 64b4ebd315
which failed to take this into account, dunno how this wasn't caught
in CI or local testing.
This commit is contained in:
Panu Matilainen 2020-09-18 12:17:37 +03:00
parent 505fe16f86
commit 4cbdd7c940
1 changed files with 7 additions and 3 deletions

View File

@ -1471,6 +1471,8 @@ static int rpmtsSetup(rpmts ts, rpmprobFilterFlags ignoreSet)
return 0;
}
/* XXX _minimize_writes is not safe for mass-consumption yet */
#if 0
/* Push a macro with current value or default if no previous value exists */
static void ensureMacro(const char *name, const char *def)
{
@ -1486,16 +1488,18 @@ static void ensureMacro(const char *name, const char *def)
/* Enable / disable optimizations for solid state disks */
static void setSSD(int enable)
{
/* XXX _minimize_writes is not safe for mass-consumption yet */
#if 0
if (enable) {
rpmlog(RPMLOG_DEBUG, "optimizing for non-rotational disks\n");
ensureMacro("_minimize_writes", "1");
} else {
rpmPopMacro(NULL, "_minimize_writes");
}
#endif
}
#else
static void setSSD(int enable)
{
}
#endif
static int rpmtsFinish(rpmts ts)
{