148 SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas") |
148 SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas") |
149 SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb") |
149 SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb") |
150 SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb") |
150 SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb") |
151 ELSEIF(MSVC) |
151 ELSEIF(MSVC) |
152 # This part is unnecessary 'casue the same is set by the lemon/core.h. |
152 # This part is unnecessary 'casue the same is set by the lemon/core.h. |
153 # Still keep it as an example. |
153 # Still kept as an example. |
154 SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996") |
154 |
|
155 # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996") |
|
156 |
155 # Suppressed warnings: |
157 # Suppressed warnings: |
156 # C4250: 'class1' : inherits 'class2::member' via dominance |
158 # C4250: 'class1' : inherits 'class2::member' via dominance |
|
159 # C4267: conversion from 'size_t' to 'type', possible loss of data |
157 # C4355: 'this' : used in base member initializer list |
160 # C4355: 'this' : used in base member initializer list |
158 # C4503: 'function' : decorated name length exceeded, name was truncated |
161 # C4503: 'function' : decorated name length exceeded, name was truncated |
159 # C4800: 'type' : forcing value to bool 'true' or 'false' |
162 # C4800: 'type' : forcing value to bool 'true' or 'false' |
160 # (performance warning) |
163 # (performance warning) |
161 # C4996: 'function': was declared deprecated |
164 # C4996: 'function': was declared deprecated |