Commit 21ef8af6 authored by Russ Fish's avatar Russ Fish

Add WIN32 #pragma statements to the hypviewer code, to shut off voluminous...

Add WIN32 #pragma statements to the hypviewer code, to shut off voluminous warnings about conversion from double to float for floating point literals.
parent c7f382e7
...@@ -37,10 +37,21 @@ ...@@ -37,10 +37,21 @@
#define HYPDATA_H #define HYPDATA_H
// #include <utmpx.h> // #include <utmpx.h>
#ifdef WIN32 #ifdef WIN32
// disable warning C4786: symbol greater than 255 character, // disable warning C4786: symbol greater than 255 character,
// okay to ignore // okay to ignore
#pragma warning(disable: 4786) #pragma warning(disable: 4786)
// Get rid of these warnings that come from double literals:
// truncation from const double to float
// conversion from double to float
#pragma warning(disable: 4305 4244)
// And this one: forcing value to bool 'true' or 'false' (performance warning)
#pragma warning(disable: 4800)
#include <winsock.h> #include <winsock.h>
#else #else
#include <sys/time.h> #include <sys/time.h>
......
...@@ -37,8 +37,14 @@ ...@@ -37,8 +37,14 @@
#define HYPGRAPH_H #define HYPGRAPH_H
#include <string> #include <string>
#include <map>
#ifdef WIN32
// Disable this warning, which occurs voluminously during debug compilation:
// warning C4786: : identifier was truncated to '255' characters in the debug information
#pragma warning(disable: 4786)
#endif
#include <map>
#include "HypNode.h" #include "HypNode.h"
#include "HypLink.h" #include "HypLink.h"
......
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
#ifndef HYPGROUPARRAY_H #ifndef HYPGROUPARRAY_H
#define HYPGROUPARRAY_H #define HYPGROUPARRAY_H
#ifdef WIN32
// Disable this warning, which occurs voluminously during debug compilation:
// warning C4786: : identifier was truncated to '255' characters in the debug information
#pragma warning(disable: 4786)
#endif
#include <vector> #include <vector>
......
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
#ifndef HYPNODE_H #ifndef HYPNODE_H
#define HYPNODE_H #define HYPNODE_H
#ifdef WIN32
// Disable this warning, which occurs voluminously during debug compilation:
// warning C4786: : identifier was truncated to '255' characters in the debug information
#pragma warning(disable: 4786)
#endif
#include <vector> #include <vector>
......
...@@ -36,6 +36,13 @@ ...@@ -36,6 +36,13 @@
#ifndef HYPQUAT_H #ifndef HYPQUAT_H
#define HYPQUAT_H #define HYPQUAT_H
#ifdef WIN32
// Get rid of these warnings that come from double literals:
// truncation from const double to float
// conversion from double to float
#pragma warning(disable: 4305 4244)
#endif
#include "HypTransform.h" #include "HypTransform.h"
class HypQuat { class HypQuat {
......
...@@ -44,8 +44,15 @@ ...@@ -44,8 +44,15 @@
// Silicon Graphics, Inc. in 1998 for the purpose of the creation of // Silicon Graphics, Inc. in 1998 for the purpose of the creation of
// this software. // this software.
#ifdef WIN32
// Disable this warning, which occurs voluminously during debug compilation:
// warning C4786: : identifier was truncated to '255' characters in the debug information
#pragma warning(disable: 4786)
#endif
#include <string> #include <string>
NAMESPACEHACK NAMESPACEHACK
#include "HypGroupArray.h" #include "HypGroupArray.h"
HypGroupArray::~HypGroupArray() HypGroupArray::~HypGroupArray()
......
...@@ -33,6 +33,13 @@ ...@@ -33,6 +33,13 @@
// reserved under the Copyright Laws of United States. // reserved under the Copyright Laws of United States.
// Contractor/manufacturer is Silicon Graphics, Inc., 2011 N. // Contractor/manufacturer is Silicon Graphics, Inc., 2011 N.
// Shoreline Blvd. Mountain View, CA 94039-7311. // Shoreline Blvd. Mountain View, CA 94039-7311.
#ifdef WIN32
// Disable this warning, which occurs voluminously during debug compilation:
// warning C4786: : identifier was truncated to '255' characters in the debug information
#pragma warning(disable: 4786)
#endif
#include <string> #include <string>
NAMESPACEHACK NAMESPACEHACK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment