mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-12 21:25:04 -05:00
Note for self: -O1+ strips out expressions surrounded by assert()
This commit is contained in:
@@ -173,12 +173,14 @@ namespace linuxdeploy {
|
||||
DesktopFileEntry entry;
|
||||
|
||||
// this should never return false
|
||||
assert(getEntry(section, key, entry));
|
||||
auto entryExists = getEntry(section, key, entry);
|
||||
assert(entryExists);
|
||||
|
||||
ldLog() << LD_WARNING << "Key exists, not modified:" << key << "(current value:" << entry.value() << LD_NO_SPACE << ")" << std::endl;
|
||||
rv = false;
|
||||
} else {
|
||||
assert(!setEntry(section, std::move(DesktopFileEntry(key, value))));
|
||||
auto entrySet = setEntry(section, DesktopFileEntry(key, value));
|
||||
assert(entrySet);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user