]> gcc.gnu.org Git - gcc.git/commitdiff
Address -Wsign-compare diagnostics
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 8 Jul 2015 14:48:11 +0000 (16:48 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 8 Jul 2015 14:48:11 +0000 (16:48 +0200)
... which have been introduced in r223152, for example hundreds of:

    [...]/gcc/input.h:37:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

libcpp/
* include/line-map.h (RESERVED_LOCATION_COUNT): Change type to
source_location.

From-SVN: r225558

libcpp/ChangeLog
libcpp/include/line-map.h

index 2d2893e0c1d4bc18fa0cb4bd3b31b6e4c923f506..e72b5359deeadc28edec20abd2ba75f2793b9f60 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * include/line-map.h (RESERVED_LOCATION_COUNT): Change type to
+       source_location.
+
 2015-07-02  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR preprocessor/53690
index 41551563868a307ed1621f1445e763c2b721382d..bc747c116bb376fb2a64423e4b7f5399d0d4a075 100644 (file)
@@ -870,7 +870,7 @@ bool linemap_location_from_macro_expansion_p (const struct line_maps *,
 /* source_location values from 0 to RESERVED_LOCATION_COUNT-1 will
    be reserved for libcpp user as special values, no token from libcpp
    will contain any of those locations.  */
-const int RESERVED_LOCATION_COUNT = 2;
+const source_location RESERVED_LOCATION_COUNT = 2;
 
 /* Converts a map and a source_location to source line.  */
 inline linenum_type
This page took 0.061847 seconds and 5 git commands to generate.