]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
Fix the missing "Figure #:" label from the caption of a figure float.
[lyx.git] / src / counters.C
index 851b87e0574743596037cc26267aa459d29215cf..087a0bd2c454d041f813df7148876b3e41cbc1e9 100644 (file)
@@ -289,7 +289,9 @@ string Counters::counterLabel(string const & format)
 {
        string label = format;
        while (true) {
+#ifdef WITH_WARNINGS
 #warning Using boost::regex would make this code a lot simpler... (Lgb)
+#endif
 
                size_t const i = label.find('\\', 0);
                if (i == string::npos)