]> git.lyx.org Git - features.git/commitdiff
Fix a couple of compilation warnings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Jan 2014 11:08:35 +0000 (12:08 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Jan 2014 11:08:35 +0000 (12:08 +0100)
src/Lexer.cpp
src/lyxfind.cpp
status.20x

index d824da0364542253cbc713202cb616f5831b4d2c..664e1b9bfb6c10867b6981479a50d4d8b2c80fe2 100644 (file)
@@ -274,9 +274,9 @@ bool Lexer::Pimpl::setFile(FileName const & filename)
 
        // Skip byte order mark.
        if (is.peek() == 0xef) {
-               int c = is.get();
+               is.get();
                if (is.peek() == 0xbb) {
-                       c = is.get();
+                       is.get();
                        LASSERT(is.get() == 0xbf, /**/);
                } else
                        is.unget();
index 862d01096bb630307238c2e162036901051bcc05..f4c24274758b2373f9086c330c2999bb706d2e19 100644 (file)
@@ -559,27 +559,6 @@ string apply_escapes(string s, Escapes const & escape_map)
        return s;
 }
 
-/** Return the position of the closing brace matching the open one at s[pos],
- ** or s.size() if not found.
- **/
-static size_t find_matching_brace(string const & s, size_t pos)
-{
-       LASSERT(s[pos] == '{', /* */);
-       int open_braces = 1;
-       for (++pos; pos < s.size(); ++pos) {
-               if (s[pos] == '\\')
-                       ++pos;
-               else if (s[pos] == '{')
-                       ++open_braces;
-               else if (s[pos] == '}') {
-                       --open_braces;
-                       if (open_braces == 0)
-                               return pos;
-               }
-       }
-       return s.size();
-}
-
 /// Within \regexp{} apply get_lyx_unescapes() only (i.e., preserve regexp semantics of the string),
 /// while outside apply get_lyx_unescapes()+get_regexp_escapes().
 /// If match_latex is true, then apply regexp_latex_escapes() to \regexp{} contents as well.
index 3ee0c0cd90ee03aedec521e8771d2c3d75037689..3eae2e29be64e4456ac6989f6b150d86470a54ee 100644 (file)
@@ -81,3 +81,4 @@ What's new
 
 - improve detection of Qt via pkg-config, especially on Mac OS.
 
+- fix a couple of compilation warnings.