You've already forked linuxdeploy
mirror of
https://github.com/encounter/linuxdeploy.git
synced 2026-03-30 11:18:58 -07: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