Fix compilation issue with "no-debug" logging
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 4 Jun 2018 06:25:10 +0000 (08:25 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 4 Jun 2018 06:25:10 +0000 (08:25 +0200)
src/nhdp/ff_dat_metric/ff_dat_metric.c

index 2c2e678..49fac98 100644 (file)
@@ -644,8 +644,8 @@ _get_raw_rx_linkspeed(struct nhdp_link *lnk) {
 }
 
 static int64_t
-_scale_linkspeed(struct nhdp_link *lnk, int64_t raw_rx_rate) {
-#ifdef OONF_LOG_INFO
+_scale_linkspeed(struct nhdp_link *lnk __attribute__((unused)), int64_t raw_rx_rate) {
+#ifdef OONF_LOG_DEBUG_INFO
   struct netaddr_str nbuf;
 #endif
   int64_t rx_rate;