mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
kmod: make GCC shut up
This commit is contained in:
parent
fa4ab99705
commit
cdb454f2de
@ -36,12 +36,14 @@ static const char * const kmod_table[] = {
|
||||
"unix", "/proc/net/unix"
|
||||
};
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
static void systemd_kmod_log(void *data, int priority, const char *file, int line,
|
||||
const char *fn, const char *format, va_list args)
|
||||
{
|
||||
log_meta(priority, file, line, fn, format, args);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
int kmod_setup(void) {
|
||||
unsigned i;
|
||||
|
@ -32,11 +32,14 @@
|
||||
#include "util.h"
|
||||
#include "strv.h"
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
static void systemd_kmod_log(void *data, int priority, const char *file, int line,
|
||||
const char *fn, const char *format, va_list args)
|
||||
{
|
||||
log_meta(priority, file, line, fn, format, args);
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int r = EXIT_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user