From c5de74558008f1b33c6f3a73f306d5d0950aa10d Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Thu, 31 Jul 2003 06:47:05 +0000 Subject: Disabled unknown pragma warning in MSVC-6. svn-id: r9320 --- common/str.cpp | 4 ++++ gui/PopUpWidget.cpp | 5 +++++ gui/newgui.cpp | 5 +++++ gui/widget.cpp | 5 +++++ scumm/dialogs.cpp | 5 +++++ scumm/gfx.cpp | 4 ++++ scumm/scummvm.cpp | 5 +++++ sound/audiostream.cpp | 4 ++++ 8 files changed, 37 insertions(+) diff --git a/common/str.cpp b/common/str.cpp index 2c0de82f7d..97bb7fb17e 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -23,6 +23,10 @@ #include +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif namespace ScummVM { diff --git a/gui/PopUpWidget.cpp b/gui/PopUpWidget.cpp index dfd168bd47..217af0cad9 100644 --- a/gui/PopUpWidget.cpp +++ b/gui/PopUpWidget.cpp @@ -24,6 +24,11 @@ #include "newgui.h" #include "common/engine.h" +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif + #define UP_DOWN_BOX_HEIGHT 10 // Little up/down arrow diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 8e8f687732..a67c1f37ee 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -27,6 +27,11 @@ # include "palm.h" #endif +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif + /* * TODO list diff --git a/gui/widget.cpp b/gui/widget.cpp index d16de51d0c..9160afe78f 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -23,6 +23,11 @@ #include "dialog.h" #include "newgui.h" +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif + Widget::Widget (Dialog *boss, int x, int y, int w, int h) : _type(0), _boss(boss), _x(x), _y(y), _w(w), _h(h), diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index ba2b72d258..ad460f8051 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -36,6 +36,11 @@ #include "gui/ListWidget.h" #include "common/config-file.h" +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif + #ifdef _WIN32_WCE #include "gapi_keys.h" extern bool _get_key_mapping; diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index a56c365a6d..ed2c16305a 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -28,6 +28,10 @@ #include "usage_bits.h" #include "util.h" +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif enum { kScrolltime = 500, // ms scrolling is supposed to take diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index faef46e4fd..270300d27b 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -52,6 +52,11 @@ #include #endif +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif + #ifdef _WIN32_WCE extern bool isSmartphone(void); #endif diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 0d769e3df7..c6f3ae2524 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -26,6 +26,10 @@ #include "common/file.h" #include "common/util.h" +#ifdef _MSC_VER +// Disable "unknown pragma" warning in MSVC 6 +#pragma warning(disable : 4068) +#endif template static inline int16 readSample(const byte *ptr) { -- cgit v1.2.3