diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-23 00:49:49 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-24 03:47:26 +0200 |
commit | 521e7c3aea7cfc478380acb9857beb938855f00f (patch) | |
tree | 90eb313c966d1d42dfae71bbcf95595247e13371 /src/journal | |
parent | gitignore: ignore all build* subdirs in main directory (diff) | |
download | systemd-521e7c3aea7cfc478380acb9857beb938855f00f.tar.xz systemd-521e7c3aea7cfc478380acb9857beb938855f00f.zip |
journal/fsprg: set -Wno-pointer-arithm only for that file
Both gcc and clang issue a host of warnings about void pointers used in
arithmetic. The warning must be ignored in that file to avoid multiple
warnings.
Makefile.am used to set this for all libsystemd-journal-internal.a sources,
because there's no finer granularity for warnings. Let's just set it for
this one file.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/fsprg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/fsprg.c b/src/journal/fsprg.c index 612b10f3a9..e7c22880be 100644 --- a/src/journal/fsprg.c +++ b/src/journal/fsprg.c @@ -40,6 +40,9 @@ #define RND_GEN_Q 0x02 #define RND_GEN_X 0x03 +#pragma GCC diagnostic ignored "-Wpointer-arith" +/* TODO: remove void* arithmetic and this work-around */ + /******************************************************************************/ static void mpi_export(void *buf, size_t buflen, const gcry_mpi_t x) { |