aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Attila Molnar2013-07-16 14:07:11 -0700
committerGravatar Attila Molnar2013-07-16 14:07:11 -0700
commit6a7de2b21f0fe12ac2f22ed278488e047df93f77 (patch)
treee143c70341417a9f49d7416f7d56247101b433c7 /src
parentMerge pull request #587 from SaberUK/master+defer-preprocessor (diff)
parentFix some warnings which are causing debug builds to fail. (diff)
Merge pull request #589 from SaberUK/master+fix-debug-build
Fix some warnings which are causing debug builds to fail.
Diffstat (limited to 'src')
-rw-r--r--src/configparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 31d314148..3289cf396 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -183,7 +183,10 @@ struct Parser
std::set<std::string> seen;
tag = ConfigTag::create(name, current.filename, current.line, items);
- while (kv(items, seen));
+ while (kv(items, seen))
+ {
+ // Do nothing here (silences a GCC warning).
+ }
if (name == mandatory_tag)
{