Fix build with -DENABLE_DECODE=n.
authorUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:52:18 +0000 (19:52 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:52:18 +0000 (19:52 +0200)
pv/logging.cpp

index 9740690e7f33e87364a4a915c22499127b3f0cc2..49b7d5828359962dcc0f4fbdc274865c783c826d 100644 (file)
@@ -72,7 +72,9 @@ int Logging::get_log_level() const
 void Logging::set_log_level(int level)
 {
        sr_log_loglevel_set(level);
 void Logging::set_log_level(int level)
 {
        sr_log_loglevel_set(level);
+#ifdef ENABLE_DECODE
        srd_log_loglevel_set(level);
        srd_log_loglevel_set(level);
+#endif
 }
 
 QString Logging::get_log() const
 }
 
 QString Logging::get_log() const