Danke, Funktion passt wieder.
Mein Compiler bringt aber noch ein paar Warnings:
Code
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++17 -Wfatal-errors -Wundef -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-unused-variable -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"live"' -DTNTVERSION=30000 -DCXXTOOLVER=30000 -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DHAVE_PCRE2 -I/usr/src/vdr/vdr/include -I/usr/src/vdr/vdr/include -I.. edit_timer.cpp
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++17 -Wfatal-errors -Wundef -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-unused-variable -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"live"' -DTNTVERSION=30000 -DCXXTOOLVER=30000 -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DHAVE_PCRE2 -I/usr/src/vdr/vdr/include -I/usr/src/vdr/vdr/include -I.. error.cpp
edit_timer.ecpp: In member function ‘virtual unsigned int {anonymous}::_component_::operator()(tnt::HttpRequest&, tnt::HttpReply&, tnt::QueryParams&)’:
edit_timer.ecpp:149:18: warning: ignoring return value of ‘bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’, declared with attribute ‘nodiscard’ [-Wunused-result]
149 | monitoring == "none"; // tvscraper does the monitoring -> no epgsearch monitoring
| ~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/13/string:54,
from /usr/include/tnt/compident.h:33,
from /usr/include/tnt/component.h:33,
from /usr/include/tnt/ecpp.h:33,
from edit_timer.cpp:6:
/usr/include/c++/13/bits/basic_string.h:3727:5: note: declared here
3727 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
edit_timer.ecpp:151:18: warning: ignoring return value of ‘bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’, declared with attribute ‘nodiscard’ [-Wunused-result]
151 | monitoring == "none"; // monitoring only supported for single shot timers
| ~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:3727:5: note: declared here
3727 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
edit_timer.ecpp:153:47: warning: ignoring return value of ‘bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’, declared with attribute ‘nodiscard’ [-Wunused-result]
153 | if (!aux_epgsearch.found() ) monitoring == "none";
| ~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:3727:5: note: declared here
3727 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++17 -Wfatal-errors -Wundef -Wno-deprecated-declarations -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"live"' -DTNTVERSION=30000 -DCXXTOOLVER=30000 -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DHAVE_PCRE2 -I/usr/src/vdr/vdr/include ffmpeg.cpp
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++17 -Wfatal-errors -Wundef -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-unused-variable -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"live"' -DTNTVERSION=30000 -DCXXTOOLVER=30000 -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DDISABLE_TEMPLATES_COLLIDING_WITH_STL -DHAVE_PCRE2 -I/usr/src/vdr/vdr/include -I/usr/src/vdr/vdr/include -I.. tooltip.cpp
Display More