diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | pages/multischedule.ecpp | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -51,7 +51,8 @@ ifneq ($(HAVE_LIBPCRECPP),) LIBS += $(HAVE_LIBPCRECPP) endif -CXXFLAGS += -std=c++11 -Wfatal-errors -Wundef +# -Wno-deprecated-declarations .. get rid of warning: ‘template<class> class std::auto_ptr’ is deprecated +CXXFLAGS += -std=c++11 -Wfatal-errors -Wundef -Wno-deprecated-declarations ### export all vars for sub-makes, using absolute paths LIBDIR := $(abspath $(LIBDIR)) diff --git a/pages/multischedule.ecpp b/pages/multischedule.ecpp index e82942b..d06ac44 100644 --- a/pages/multischedule.ecpp +++ b/pages/multischedule.ecpp @@ -317,7 +317,7 @@ std::vector<time_t> times_start; #endif if ( ! Channel ) continue; - if ( Channel->GroupSep() || Channel->Name() == '\0' ) + if ( Channel->GroupSep() || !Channel->Name() || !*Channel->Name() ) continue; channel_names[ j ] = Channel->Name(); channel_IDs[ j ] = Channel->GetChannelID(); |