aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2015-07-08 16:48:11 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2015-07-08 16:48:11 +0200
commitd17f7d5994e7cb76d9708da59b89f68b78c20de3 (patch)
tree3534c38349b565f3a04ce7eeb047ec1bf086ead6 /libcpp
parent58c5ad4032b2bb9e39a0d8c9925c0673f22877a0 (diff)
downloadgcc-d17f7d5994e7cb76d9708da59b89f68b78c20de3.zip
gcc-d17f7d5994e7cb76d9708da59b89f68b78c20de3.tar.gz
gcc-d17f7d5994e7cb76d9708da59b89f68b78c20de3.tar.bz2
Address -Wsign-compare diagnostics
... 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
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/include/line-map.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 2d2893e..e72b535 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -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
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h
index 4155156..bc747c1 100644
--- a/libcpp/include/line-map.h
+++ b/libcpp/include/line-map.h
@@ -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