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:
@@ -347,7 +347,7 @@ static int property_set_kexec_watchdog(
|
|||||||
void *userdata,
|
void *userdata,
|
||||||
sd_bus_error *error) {
|
sd_bus_error *error) {
|
||||||
|
|
||||||
Manager *m = userdata;
|
_unused_ Manager *m = userdata;
|
||||||
|
|
||||||
assert(m);
|
assert(m);
|
||||||
assert(bus);
|
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 */
|
/* Allocate large buffer to accommodate big message */
|
||||||
if (len >= LINE_MAX) {
|
if (len >= LINE_MAX) {
|
||||||
int rlen;
|
_unused_ int rlen;
|
||||||
buffer = alloca(len + 9);
|
buffer = alloca(len + 9);
|
||||||
memcpy(buffer, "MESSAGE=", 8);
|
memcpy(buffer, "MESSAGE=", 8);
|
||||||
rlen = vsnprintf(buffer + 8, len + 1, format, ap);
|
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 */
|
/* Allocate large buffer to accommodate big message */
|
||||||
if (len >= LINE_MAX) {
|
if (len >= LINE_MAX) {
|
||||||
int rlen;
|
_unused_ int rlen;
|
||||||
buffer = alloca(len + 9);
|
buffer = alloca(len + 9);
|
||||||
memcpy(buffer, "MESSAGE=", 8);
|
memcpy(buffer, "MESSAGE=", 8);
|
||||||
rlen = vsnprintf(buffer + 8, len + 1, format, ap);
|
rlen = vsnprintf(buffer + 8, len + 1, format, ap);
|
||||||
|
|||||||
Reference in New Issue
Block a user