diff options
author | Petr Vorel <petr.vorel@gmail.com> | 2021-08-27 00:13:59 +0200 |
---|---|---|
committer | Petr Vorel <petr.vorel@gmail.com> | 2021-08-27 00:17:39 +0200 |
commit | a0b39174e3aeb62aacc62664815bf633a2cdd1c0 (patch) | |
tree | 59d268118978da0a0e91057cdf015802ad137ec5 | |
parent | 085d03081989ea5293c4755d49f2b4bdd0238478 (diff) | |
download | iputils-a0b39174e3aeb62aacc62664815bf633a2cdd1c0.tar.gz |
ninfod: Fix build with -DNINFOD_MESSAGES=false
This fixes build error:
$ rm -rf builddir/; meson builddir -DNINFOD_MESSAGES=false && make
...
ninfod/ninfod.c:201: undefined reference to `DEBUG'
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
-rw-r--r-- | ninfod/ninfod.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ninfod/ninfod.c b/ninfod/ninfod.c index aa3cd79..122e485 100644 --- a/ninfod/ninfod.c +++ b/ninfod/ninfod.c @@ -169,6 +169,10 @@ void DEBUG(int const pri, char const *const fmt, ...) } errno = saved_errno; } +#else +iputils_attribute_format(__printf__, 2, 3) +void DEBUG(int const pri __attribute__ ((unused)), char const *const fmt __attribute__ ((unused)), ...) +{} #endif /* --------- */ |