]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: mark assert()-only variables as unused 16087/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Jun 2020 19:31:10 +0000 (21:31 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Jun 2020 19:31:10 +0000 (21:31 +0200)
to make a compilation with -Db_ndebug=true and --werror pass once again.

src/core/dbus-manager.c
src/journal/journal-send.c

index 51254b92da536404a6812d22243048ded2955002..2a3c8e776ac9b5a4f86a5370dc5b4c5c69203d58 100644 (file)
@@ -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);
index bbb1c206c5d15f321074a41ae3ae27062dd06801..57d09e78c38e07fd4c3a24374800e978a3e631a1 100644 (file)
@@ -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);