From 995202d020059e7cd3aeea2965c9b5c7e0762cbd Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 21 Jun 2010 21:46:29 +0000 Subject: [PATCH 1/1] small warning+PCH fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/filename/filenametest.cpp | 2 +- tests/interactive/output.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/filename/filenametest.cpp b/tests/filename/filenametest.cpp index a45a5db035..dee7cd081c 100644 --- a/tests/filename/filenametest.cpp +++ b/tests/filename/filenametest.cpp @@ -596,7 +596,7 @@ void FileNameTestCase::TestCreateTempFileName() #ifdef __WXMSW__ { "$USER_DOCS_DIR\\", "$USER_DOCS_DIR", true }, { "c:\\a\\directory\\which\\does\\not\\exist", "", false }, -#else if defined( __UNIX__ ) +#elif defined( __UNIX__ ) { "$USER_DOCS_DIR/", "$USER_DOCS_DIR", true }, { "/tmp/foo", "/tmp", true }, { "/tmp/a/directory/which/does/not/exist", "", false }, diff --git a/tests/interactive/output.cpp b/tests/interactive/output.cpp index 308d2427b7..4c33078b9f 100644 --- a/tests/interactive/output.cpp +++ b/tests/interactive/output.cpp @@ -21,6 +21,8 @@ #pragma hdrstop #endif +#include "wx/app.h" + // ---------------------------------------------------------------------------- // conditional compilation // ---------------------------------------------------------------------------- @@ -381,7 +383,6 @@ void InteractiveOutputTestCase::TestStackWalk() // standard paths // ---------------------------------------------------------------------------- - #include "wx/stdpaths.h" #include "wx/wxchar.h" // wxPrintf @@ -425,8 +426,9 @@ void InteractiveOutputTestCase::TestStandardPaths() #undef TEST_VOLUME #endif -#include "wx/volume.h" +#ifdef TEST_VOLUME +#include "wx/volume.h" static const wxChar *volumeKinds[] = { wxT("floppy"), @@ -437,6 +439,8 @@ static const wxChar *volumeKinds[] = wxT("other volume"), }; +#endif + void InteractiveOutputTestCase::TestFSVolume() { #ifdef TEST_VOLUME -- 2.45.2