fix gcc warnings about in printf format (partly modified patch 1500717)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1755,8 +1755,9 @@ void wxDb::Close(void)
|
||||
tiu = (wxTablesInUse *)pNode->GetData();
|
||||
if (tiu->pDb == this)
|
||||
{
|
||||
s.Printf(wxT("(%-20s) tableID:[%6lu] pDb:[%p]"), tiu->tableName,tiu->tableID,tiu->pDb);
|
||||
s2.Printf(wxT("Orphaned table found using pDb:[%p]"),this);
|
||||
s.Printf(wxT("(%-20s) tableID:[%6lu] pDb:[%p]"),
|
||||
tiu->tableName, tiu->tableID, wx_static_cast(void*, tiu->pDb));
|
||||
s2.Printf(wxT("Orphaned table found using pDb:[%p]"), wx_static_cast(void*, this));
|
||||
wxLogDebug(s.c_str(),s2.c_str());
|
||||
}
|
||||
pNode = pNode->GetNext();
|
||||
|
@@ -186,7 +186,8 @@ bool wxDbTable::initialize(wxDb *pwxDb, const wxString &tblName, const UWORD num
|
||||
|
||||
wxString s;
|
||||
tableID = ++lastTableID;
|
||||
s.Printf(wxT("wxDbTable constructor (%-20s) tableID:[%6lu] pDb:[%p]"), tblName.c_str(), tableID, pDb);
|
||||
s.Printf(wxT("wxDbTable constructor (%-20s) tableID:[%6lu] pDb:[%p]"),
|
||||
tblName.c_str(), tableID, wx_static_cast(void*, pDb));
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
wxTablesInUse *tableInUse;
|
||||
@@ -309,7 +310,8 @@ void wxDbTable::cleanup()
|
||||
wxString s;
|
||||
if (pDb)
|
||||
{
|
||||
s.Printf(wxT("wxDbTable destructor (%-20s) tableID:[%6lu] pDb:[%p]"), tableName.c_str(), tableID, pDb);
|
||||
s.Printf(wxT("wxDbTable destructor (%-20s) tableID:[%6lu] pDb:[%p]"),
|
||||
tableName.c_str(), tableID, wx_static_cast(void*, pDb));
|
||||
pDb->WriteSqlLog(s);
|
||||
}
|
||||
|
||||
|
@@ -1650,12 +1650,12 @@ bool wxFileConfigGroup::DeleteSubgroup(wxFileConfigGroup *pGroup)
|
||||
|
||||
wxLogTrace( FILECONF_TRACE_MASK,
|
||||
_T(" (m_pLine) = prev: %p, this %p, next %p"),
|
||||
((m_pLine) ? m_pLine->Prev() : 0),
|
||||
m_pLine ? m_pLine->Prev() : NULL,
|
||||
m_pLine,
|
||||
((m_pLine) ? m_pLine->Next() : 0) );
|
||||
m_pLine ? m_pLine->Next() : NULL );
|
||||
wxLogTrace( FILECONF_TRACE_MASK,
|
||||
_T(" text: '%s'"),
|
||||
((m_pLine) ? m_pLine->Text().c_str() : wxEmptyString) );
|
||||
m_pLine ? m_pLine->Text().c_str() : wxEmptyString );
|
||||
|
||||
// delete all entries...
|
||||
size_t nCount = pGroup->m_aEntries.Count();
|
||||
|
@@ -985,7 +985,7 @@ bool wxVariantDataWxObjectPtr::Write(wxSTD ostream& str) const
|
||||
|
||||
bool wxVariantDataWxObjectPtr::Write(wxString& str) const
|
||||
{
|
||||
str.Printf(wxT("%s(%p)"), GetType().c_str(), m_value);
|
||||
str.Printf(wxT("%s(%p)"), GetType().c_str(), wx_static_cast(void*, m_value));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user