1
0
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:
Lennart Poettering 2012-02-09 01:24:40 +01:00
parent fa4ab99705
commit cdb454f2de
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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;