User forums > Nightly builds

The 26 August 2008 build (5195) is out.

<< < (8/8)

killerbot:
done

stahta01:
I decided I needed to verify Code::Blocks builds using ANSI instead of Unicode wxWidgets 2.9.

Before any of my patches and compiling with wx 2.8 branch, I get about 30 warnings on printf type format strings.

Here's an example patch needed by Code::Blocks, to get rid of the warnings.
The rest are all debuggergdb plugin or contrib plugins.

Tim S


--- Code: ---Index: src/sdk/compiler.cpp
===================================================================
--- src/sdk/compiler.cpp (revision 5208)
+++ src/sdk/compiler.cpp (working copy)
@@ -597,7 +597,7 @@
  m_Commands[i].push_back(CompilerTool());
  CompilerTool& tool = m_Commands[i][index];
 
- wxString key = wxString::Format(_T("%s/macros/%s/tool%d/"), tmp.c_str(), CommandTypeDescriptions[i].c_str(), index);
+ wxString key = wxString::Format(_T("%s/macros/%s/tool%lu/"), tmp.c_str(), CommandTypeDescriptions[i].c_str(), index);
  tool.command = cfg->Read(key + _T("command"));
  tool.extensions = cfg->ReadArrayString(key + _T("extensions"));
  tool.generatedFiles = cfg->ReadArrayString(key + _T("generatedFiles"));
@@ -649,7 +649,7 @@
         // read everything and either assign it to an existing regex
         // if the index exists, or add a new regex
 
-        group.Printf(_T("%s/regex/re%3.3d"), tmp.c_str(), index);
+        group.Printf(_T("%s/regex/re%3.3ld"), tmp.c_str(), index);
         if (!cfg->Exists(group+_T("/description")))
             continue;
 

--- End code ---

killerbot:

--- Quote from: stahta01 on September 21, 2008, 08:10:53 pm ---I decided I needed to verify Code::Blocks builds using ANSI instead of Unicode wxWidgets 2.9.

Before any of my patches and compiling with wx 2.8 branch, I get about 30 warnings on printf type format strings.

Here's an example patch needed by Code::Blocks, to get rid of the warnings.
The rest are all debuggergdb plugin or contrib plugins.

Tim S


--- Code: ---Index: src/sdk/compiler.cpp
===================================================================
--- src/sdk/compiler.cpp (revision 5208)
+++ src/sdk/compiler.cpp (working copy)
@@ -597,7 +597,7 @@
  m_Commands[i].push_back(CompilerTool());
  CompilerTool& tool = m_Commands[i][index];
 
- wxString key = wxString::Format(_T("%s/macros/%s/tool%d/"), tmp.c_str(), CommandTypeDescriptions[i].c_str(), index);
+ wxString key = wxString::Format(_T("%s/macros/%s/tool%lu/"), tmp.c_str(), CommandTypeDescriptions[i].c_str(), index);
  tool.command = cfg->Read(key + _T("command"));
  tool.extensions = cfg->ReadArrayString(key + _T("extensions"));
  tool.generatedFiles = cfg->ReadArrayString(key + _T("generatedFiles"));
@@ -649,7 +649,7 @@
         // read everything and either assign it to an existing regex
         // if the index exists, or add a new regex
 
-        group.Printf(_T("%s/regex/re%3.3d"), tmp.c_str(), index);
+        group.Printf(_T("%s/regex/re%3.3ld"), tmp.c_str(), index);
         if (!cfg->Exists(group+_T("/description")))
             continue;
 

--- End code ---


--- End quote ---
checked, agreed, applied :-)

stahta01:

--- Quote from: killerbot on September 21, 2008, 10:18:06 pm ---checked, agreed, applied :-)

--- End quote ---

Thanks, posted debuggergdb ones in new NB thread.

Tim S

Navigation

[0] Message Index

[*] Previous page

Go to full version