# HG changeset patch # User Alpar Juttner # Date 1430237264 -7200 # Node ID c199e9976d936d9cf65193c0d5d9d55edb296bec # Parent f70f688d9ef9a2d36c71268d6f9487ac825fe381 Resolve VS and MinGW warnings (#595) diff -r f70f688d9ef9 -r c199e9976d93 lemon/bits/windows.cc --- a/lemon/bits/windows.cc Tue Apr 28 18:07:07 2015 +0200 +++ b/lemon/bits/windows.cc Tue Apr 28 18:07:44 2015 +0200 @@ -21,6 +21,10 @@ #include +#if defined(LEMON_WIN32) && defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wold-style-cast" +#endif + #ifdef LEMON_WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN diff -r f70f688d9ef9 -r c199e9976d93 lemon/core.h --- a/lemon/core.h Tue Apr 28 18:07:07 2015 +0200 +++ b/lemon/core.h Tue Apr 28 18:07:44 2015 +0200 @@ -19,13 +19,12 @@ #ifndef LEMON_CORE_H #define LEMON_CORE_H -#include -#include - -#include -#include -#include -#include +///\file +///\brief LEMON core utilities. +/// +///This header file contains core utilities for LEMON. +///It is automatically included by all graph types, therefore it usually +///do not have to be included directly. // Disable the following warnings when compiling with MSVC: // C4250: 'class1' : inherits 'class2::member' via dominance @@ -43,12 +42,15 @@ #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif -///\file -///\brief LEMON core utilities. -/// -///This header file contains core utilities for LEMON. -///It is automatically included by all graph types, therefore it usually -///do not have to be included directly. +#include +#include + +#include +#include +#include +#include + + namespace lemon { diff -r f70f688d9ef9 -r c199e9976d93 test/radix_sort_test.cc --- a/test/radix_sort_test.cc Tue Apr 28 18:07:07 2015 +0200 +++ b/test/radix_sort_test.cc Tue Apr 28 18:07:44 2015 +0200 @@ -16,6 +16,8 @@ * */ +#include + #include #include #include