summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/dbus-manager.c2
-rw-r--r--src/journal/journal-send.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index 51254b92da..2a3c8e776a 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -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);
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c
index bbb1c206c5..57d09e78c3 100644
--- a/src/journal/journal-send.c
+++ b/src/journal/journal-send.c
@@ -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);