From d568d409103260cff28543efd6cafe10807a767b Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Fri, 9 Feb 2001 19:10:18 +0000 Subject: [PATCH] Added pragma to disable overlong identifiers warning --- js2/src/debugger.cpp | 5 +++++ js2/src/jstypes.cpp | 5 +++++ js2/src/world.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/js2/src/debugger.cpp b/js2/src/debugger.cpp index bc1a3bb7525..dd84089a4ee 100644 --- a/js2/src/debugger.cpp +++ b/js2/src/debugger.cpp @@ -31,6 +31,11 @@ * file under either the NPL or the GPL. */ +#ifdef _WIN32 + // Turn off warnings about identifiers too long in browser information + #pragma warning(disable: 4786) +#endif + #include "world.h" #include "utilities.h" #include "debugger.h" diff --git a/js2/src/jstypes.cpp b/js2/src/jstypes.cpp index 2538e2ef171..59bb52dcbc3 100644 --- a/js2/src/jstypes.cpp +++ b/js2/src/jstypes.cpp @@ -31,6 +31,11 @@ * file under either the NPL or the GPL. */ +#ifdef _WIN32 + // Turn off warnings about identifiers too long in browser information + #pragma warning(disable: 4786) +#endif + #include #include "jstypes.h" diff --git a/js2/src/world.cpp b/js2/src/world.cpp index a5519a88294..9137e725c31 100644 --- a/js2/src/world.cpp +++ b/js2/src/world.cpp @@ -31,6 +31,11 @@ * file under either the NPL or the GPL. */ +#ifdef _WIN32 + // Turn off warnings about identifiers too long in browser information + #pragma warning(disable: 4786) +#endif + #include "world.h" namespace JavaScript