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 @@
#define HYPDATA_H
// #include <utmpx.h>
#ifdef WIN32
// disable warning C4786: symbol greater than 255 character,
// okay to ignore
#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>
#else
#include <sys/time.h>
......
......@@ -37,8 +37,14 @@
#define HYPGRAPH_H
#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 "HypLink.h"
......
......@@ -36,6 +36,12 @@
#ifndef 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>
......
......@@ -36,6 +36,12 @@
#ifndef 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>
......
......@@ -36,6 +36,13 @@
#ifndef 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"
class HypQuat {
......
......@@ -44,8 +44,15 @@
// Silicon Graphics, Inc. in 1998 for the purpose of the creation of
// 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>
NAMESPACEHACK
#include "HypGroupArray.h"
HypGroupArray::~HypGroupArray()
......
......@@ -33,6 +33,13 @@
// reserved under the Copyright Laws of United States.
// Contractor/manufacturer is Silicon Graphics, Inc., 2011 N.
// 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>
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