mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
Fix clang warnings for
../../../trunk/libretroshare/src/services/autoproxy/ rsautoproxymonitor.cc:263:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] ^ ../../../trunk/libretroshare/src/services/autoproxy/ rsautoproxymonitor.cc:295:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] ^ ./../../trunk/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp: 723: warning: pragma diagnostic pop could not pop, no matching push [- Wunknown-pragmas] ^
This commit is contained in:
parent
ef1755d97f
commit
4bf5bc1274
@ -258,6 +258,7 @@ void rsAutoProxyMonitor::taskDone(taskTicket *t, autoProxyStatus::autoProxyStatu
|
||||
if (cleanUp) {
|
||||
if (t->data) {
|
||||
std::cerr << "(WW) rsAutoProxyMonitor::taskFinish will try to delete void pointer!" << std::endl;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-incomplete"
|
||||
delete t->data;
|
||||
#pragma GCC diagnostic pop
|
||||
@ -290,6 +291,7 @@ void rsAutoProxyMonitor::taskFinished(taskTicket *&ticket)
|
||||
// clean up
|
||||
if (ticket->data) {
|
||||
std::cerr << "rsAutoProxyMonitor::taskFinished data set. Will try to delete void pointer" << std::endl;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-incomplete"
|
||||
delete ticket->data;
|
||||
#pragma GCC diagnostic pop
|
||||
|
@ -717,6 +717,7 @@ private:
|
||||
|
||||
// we pack the couple (id of DL, id of source) into a single 32-bits pointer that is required by the AbstractItemModel class.
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
uint32_t src = uint32_t( *reinterpret_cast<uint32_t*>(&ref) & TRANSFERS_NB_SOURCES_BIT_MASK_32BITS ) ;
|
||||
uint32_t ntr = ( *reinterpret_cast<uint32_t*>(&ref)) >> TRANSFERS_NB_SOURCES_BITS_32BITS ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user