New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build warnings #2710
Comments
The one for mohqueue was also reported on sr-dev by Henning, iirc. The one for app_python seems not to be related to the code of kamailio, but something in the headers included from/by python devel library. There is no |
I will remove |
The problem is that in old distros that still have python2, even python3 is present, some of the python libraries are still only for python2. So removing might not be advisable for those distros, in other words, I would remove packaging app_python for those distros where python2 is no longer present. |
If other modules use python2 they not affected. CentOS 7 and CenOS 8 not affected because they have python3 Kamailio modules. |
The point was not about about kamailio modules, but about running a Python script via app_python, which needs to import an external Python library that is not available (upgraded) to Python3 in that distro. So let's say, only for the sake of example, that I want to use SQLAlchemy in a python script to be run by kamailio via app_python/3, it has to be sure that SQLAlchemy is available for Python3 in that OS version, otherwise I cannot use app_python3. |
Ok, Kamailio python modules will leave as it now without any changes. |
The compiler complains about mohqueue braces but works fine as is. I couldn't find any way to silence the warning which makes no apparent difference. |
could you check this https://stackoverflow.com/questions/14670864/gcc-member-initialization-in-array-of-struct sdp_session_cell_t *psession;
char pflagbuf [5];
strcpy (pflagbuf, "z20");
-fparam_t pzflag [1] = {"", FPARAM_STRING, {pflagbuf}, 0};
+fparam_t pzflag [1] = {
+ {"", FPARAM_STRING, {pflagbuf}, 0}
+};
for (nsession = 0; (psession = get_sdp_session (pmsg, nsession)); nsession++)
{
int nstream; |
Also
Just a question. |
Also this looks as memory access outside of
|
@sergey-safarov - you can push the change you listed in a comment above:
|
pushed c7781ed |
Regarding the comment about out of bounds in Closing this one. |
missing braces around initializer
mohq_funcs.c:2163
"_POSIX_C_SOURCE" redefined
The text was updated successfully, but these errors were encountered: