mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 10:47:04 +00:00
Remove declaration causing an unused variable warning on gcc 5.1 (bug #23601)
It seems to have been meant to silence such a warning on some other compiler/version, but this might not be necessary anymore since commit 07b6eeedb2f0326fbf33c9b5d9c25b570a65b88e adds the unused attribute to some of the symbols generated by the MAKE_NUM macro. At least I don't get a warning with gcc 4.9 or clang 3.4 this way.
This commit is contained in:
parent
8d1150511a
commit
e032040630
@ -96,8 +96,6 @@ namespace conditional {
|
|||||||
(NOT, "not")
|
(NOT, "not")
|
||||||
)
|
)
|
||||||
MAKE_ENUM_STREAM_OPS1(TYPE)
|
MAKE_ENUM_STREAM_OPS1(TYPE)
|
||||||
|
|
||||||
static TYPE warning_suppressor = string_to_TYPE_default("foo", NOT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This class lazily parses an attribute value to a vector of strings
|
/// This class lazily parses an attribute value to a vector of strings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user