mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
tree-wide: mark assert()-only variables as unused
to make a compilation with -Db_ndebug=true and --werror pass once again.
This commit is contained in:
parent
b36746c90e
commit
dfa64b64a7
@ -347,7 +347,7 @@ static int property_set_kexec_watchdog(
|
||||
void *userdata,
|
||||
sd_bus_error *error) {
|
||||
|
||||
Manager *m = userdata;
|
||||
_unused_ Manager *m = userdata;
|
||||
|
||||
assert(m);
|
||||
assert(bus);
|
||||
|
@ -96,7 +96,7 @@ _public_ int sd_journal_printv(int priority, const char *format, va_list ap) {
|
||||
|
||||
/* Allocate large buffer to accommodate big message */
|
||||
if (len >= LINE_MAX) {
|
||||
int rlen;
|
||||
_unused_ int rlen;
|
||||
buffer = alloca(len + 9);
|
||||
memcpy(buffer, "MESSAGE=", 8);
|
||||
rlen = vsnprintf(buffer + 8, len + 1, format, ap);
|
||||
@ -474,7 +474,7 @@ _public_ int sd_journal_printv_with_location(int priority, const char *file, con
|
||||
|
||||
/* Allocate large buffer to accommodate big message */
|
||||
if (len >= LINE_MAX) {
|
||||
int rlen;
|
||||
_unused_ int rlen;
|
||||
buffer = alloca(len + 9);
|
||||
memcpy(buffer, "MESSAGE=", 8);
|
||||
rlen = vsnprintf(buffer + 8, len + 1, format, ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user