Closed gene-git closed 6 months ago
I have to find a better development and testing platform....thanks for reporting I'll track it down.
Thanks @Mr-Dave .
FYI, motionplus git head is in my daily build list and also gets tested (x86 with ip cams). So any little issues should show up pretty quickly on my end.
My build env is Arch fully updated from testing repo and the compile tool-chain is typically kept up to date - arch is good about things being current.
I just saw this issue. I had already opened a PR with a fix.
Thank you @bitraid.
With cstr -> c_str, then I only see one complaint from compiler about possible use before set:
In function ‘void webu_mhd_deinit_counter(ctx_webui*)’,
inlined from ‘void webu_mhd_deinit(void*, MHD_Connection*, void**, MHD_RequestTerminationCode)’ at webu.cpp:1051:28:
webu.cpp:1031:24: warning: ‘strm’ may be used uninitialized [-Wmaybe-uninitialized]
1031 | if ((strm->all_cnct == 0) &&
| ~~~~~~^~~~~~~~
webu.cpp: In function ‘void webu_mhd_deinit(void*, MHD_Connection*, void**, MHD_RequestTerminationCode)’:
webu.cpp:978:22: note: ‘strm’ was declared here
978 | ctx_stream_data *strm;
| ^~~~
depbase=`echo webu_file.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
I think this last one should be cleared up now.
Looks good - Thank you.
FYI, for completeness, the only tiny, tiny thing I see now is:
g++ -DHAVE_CONFIG_H -I. -I.. -Dsysconfdir=\"/etc/motionplus\" -DLOCALEDIR=\"/usr/share/locale\" -D_THREAD_SAFE -I/usr/include/p11-kit-1 -I/usr/include/webp -I/usr/include/libcamera -I/usr/include/mysql/ -D_REENTRANT -W -O3 -Wall -Wextra -Wconversion -Wformat -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -ggdb -g3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -std=c++17 -MT motionplus.o -MD -MP -MF $depbase.Tpo -c -o motionplus.o motionplus.cpp
&&\
mv -f $depbase.Tpo $depbase.Po
logger.cpp: In function ‘void motpls_log(int, int, int, int, const char*, ...)’:
logger.cpp:198:23: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
198 | strerror_r(errno_save, buf + n, sizeof(buf) - n); /* 2 for the ': ' */
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you
Did you read the guide?
Yes
What is the base version number of MotionPlus being used?
0.1.x
What was the install method?
Built from source code
What is base architecture?
x86/x64
What is the distro being used?
Other
Disto version number
Archlinux
Camera/Sound type(s) being used?
Network camera with RTSP
Describe the issue/problem and steps to reproduce
Compile as of commit 5d4a43ae64cf0ea8853837b91561e60e4810e115 fails for me:
Compiler : gcc 13.2.1-6
Let me know if anything else I can do to help.
Relevant MotionPlus log output (at log_level 8)