X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcounters.C;h=087a0bd2c454d041f813df7148876b3e41cbc1e9;hb=5c00d0f48978964a576070d5950556787aa365bb;hp=851b87e0574743596037cc26267aa459d29215cf;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/counters.C b/src/counters.C index 851b87e057..087a0bd2c4 100644 --- a/src/counters.C +++ b/src/counters.C @@ -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)