Commit c7e0f731 authored by Morten Welinder's avatar Morten Welinder

Compilation: house cleaning.

No need to support really old gcc.
parent ef72ebbe
......@@ -2,16 +2,8 @@
#define GNUMERIC_GTK_COMPILATION_H
#if defined(__GNUC__)
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__ )
#if (GCC_VERSION >= 402)
#if (GCC_VERSION >= 406)
#define GNM_BEGIN_KILL_SWITCH_WARNING _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wswitch\"")
#define GNM_END_KILL_SWITCH_WARNING _Pragma("GCC diagnostic pop")
#else
#define GNM_BEGIN_KILL_SWITCH_WARNING _Pragma("GCC diagnostic ignored \"-Wswitch\"")
#define GNM_END_KILL_SWITCH_WARNING _Pragma("GCC diagnostic warning \"-Wswitch\"")
#endif
#endif
#endif
#ifndef GNM_BEGIN_KILL_SWITCH_WARNING
......
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