COIN-OR::LEMON - Graph Library

Changeset 1123:18c89646185e in lemon-main


Ignore:
Timestamp:
04/02/15 12:57:18 (10 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Suppress MSVC warning C4267 (#519)

C4267: conversion from 'size_t' to 'type', possible loss of data

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1122 r1123  
    151151  ELSEIF(MSVC)
    152152    # This part is unnecessary 'casue the same is set by the lemon/core.h.
    153     # Still keep it as an example.
    154     SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
     153    # Still kept as an example.
     154
     155    # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996")
     156
    155157    # Suppressed warnings:
    156158    # C4250: 'class1' : inherits 'class2::member' via dominance
     159    # C4267: conversion from 'size_t' to 'type', possible loss of data
    157160    # C4355: 'this' : used in base member initializer list
    158161    # C4503: 'function' : decorated name length exceeded, name was truncated
  • lemon/arg_parser.h

    r879 r1123  
    2727#include <sstream>
    2828#include <algorithm>
     29#include <lemon/core.h>
    2930#include <lemon/assert.h>
    3031
  • lemon/core.h

    r1121 r1123  
    3030// Disable the following warnings when compiling with MSVC:
    3131// C4250: 'class1' : inherits 'class2::member' via dominance
     32// C4267: conversion from 'size_t' to 'type', possible loss of data
    3233// C4355: 'this' : used in base member initializer list
    3334// C4503: 'function' : decorated name length exceeded, name was truncated
     
    3536// C4996: 'function': was declared deprecated
    3637#ifdef _MSC_VER
    37 #pragma warning( disable : 4250 4355 4503 4800 4996 )
     38#pragma warning( disable : 4250 4267 4355 4503 4800 4996 )
    3839#endif
    3940
  • lemon/counter.h

    r786 r1123  
    2222#include <string>
    2323#include <iostream>
     24
     25#include <lemon/core.h>
    2426
    2527///\ingroup timecount
Note: See TracChangeset for help on using the changeset viewer.