Skip to content
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

RDKDEV-680 xdial code quality issues #84

Open
wants to merge 4 commits into
base: 23Q2_sprint
Choose a base branch
from

Conversation

tomasz-karczewski-red
Copy link
Contributor

  • most of the compilation warnings should be gone (there are some that are caused by included headers, mostly Thunder headers, these can't be easily fixed without changes to Thunder framework)
  • the memory leaks should be gone
  • it should be possible to compile xdial with gssdp >= 1.2

dwrobel and others added 4 commits April 18, 2023 10:54
- Fixes compilation with gssdp-1.2.3[1]
 - Fix compilation error:
    too many arguments to function 'gssdp_client_new'

[1] http://errors.onemw.net/Errors/Details/129057/
strdup'ed memory was never released (as confirmed
with valgrind)
compilation warnings removed
.gitignore updated

Second compilation failed on builds with gssdp-1.0
Adressed warnings:
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/plat/rtcache.cpp:47:95: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/plat/rtcache.cpp:52:95: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/gdial-ssdp.c:162:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/gdial-ssdp.c:163:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/main.c:197:3: warning: implicit declaration of function 'gdial_plat_register_friendlyname_cb' [-Wimplicit-function-declaration]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/main.c:199:3: warning: not enough variable arguments to fit a sentinel [-Wformat=]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/main.c:200:3: warning: not enough variable arguments to fit a sentinel [-Wformat=]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/main.c:201:3: warning: not enough variable arguments to fit a sentinel [-Wformat=]
/home/mikolaj.staworzynski/projects/eos2008c_20220922/onemw/onemw-src/onemw-xdialserver/server/main.c:262:13: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

TODO: check - Conflicts:
   server/main.c
This removes most of xdial warnings; remaining ones
are either caused by libsoup/glib version discrepancies
or strange redefinitions of 'EXTERNAL' in couple
wpeframework files
@pradeeptakdas
Copy link

Internal ticket for tracking https://ccp.sys.comcast.net/browse/RDKCOM-3645

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants