Skip to content

Commit

Permalink
warning all waring error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Aug 28, 2024
1 parent d3dec07 commit a54681a
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 6 deletions.
61 changes: 61 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"files.associations": {
"chrono": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"map": "cpp",
"set": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"semaphore": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"stop_token": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeinfo": "cpp"
}
}
4 changes: 1 addition & 3 deletions NetworkManagerRDKProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ namespace WPEFramework
}
void NetworkManagerImplementation::threadEventRegistration()
{
IARM_Result_t res = IARM_RESULT_SUCCESS;
IARM_Result_t retVal = IARM_RESULT_SUCCESS;
do
{
Expand Down Expand Up @@ -1216,7 +1215,7 @@ const string CIDR_PREFIXES[CIDR_NETMASK_IP_LEN] = {
if (!signalStrength.empty())
{
signalStrengthOut = std::stof(signalStrength.c_str());
NMLOG_INFO ("WiFiSignalStrength in dB = %s",signalStrengthOut);
NMLOG_INFO ("WiFiSignalStrength in dB = %f",signalStrengthOut);
}

if (signalStrengthOut == 0)
Expand Down Expand Up @@ -1311,7 +1310,6 @@ const string CIDR_PREFIXES[CIDR_NETMASK_IP_LEN] = {
{
LOG_ENTRY_FUNCTION();
uint32_t rc = Core::ERROR_RPC_CALL_FAILED;
IARM_Result_t retVal = IARM_RESULT_SUCCESS;
IARM_Bus_WiFiSrvMgr_Param_t param;
memset(&param, 0, sizeof(param));

Expand Down
4 changes: 2 additions & 2 deletions NetworkManagerStunClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ bool client::bind(
auto time_in_cache = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::steady_clock::now() - m_last_cache_time);

verbose("client::bind cache time=%lld\n", time_in_cache.count());
verbose("client::bind cache time=%ld\n", time_in_cache.count());

if(time_in_cache.count() < m_cache_timeout)
{
Expand Down Expand Up @@ -672,7 +672,7 @@ std::unique_ptr<message> client::send_binding_request(std::chrono::milliseconds
std::unique_ptr<message> client::send_binding_request(sockaddr_storage const & addr,
std::chrono::milliseconds wait_time)
{
this->verbose("sending binding request with wait time:%lld ms\n", wait_time.count());
this->verbose("sending binding request with wait time:%ld ms\n", wait_time.count());
this->create_udp_socket(addr.ss_family);
std::unique_ptr<message> binding_request(message_factory::create_binding_request());
std::unique_ptr<message> binding_response(this->send_message(addr, *binding_request, wait_time));
Expand Down
1 change: 0 additions & 1 deletion WiFiSignalStrengthMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ namespace WPEFramework
isRunning = true;
monitorThread = std::thread(&WiFiSignalStrengthMonitor::monitorThreadFunction, this, interval);
monitorThread.detach();
std::thread::id threadId = monitorThread.get_id();
NMLOG_INFO("Thread started with interval: %d seconds", interval);
}

Expand Down

0 comments on commit a54681a

Please sign in to comment.