aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-02-05 17:11:38 -0700
committerMartin Sebor <msebor@redhat.com>2020-02-05 17:14:42 -0700
commit297aa668293d55ffe100d810e92fbe592f262557 (patch)
tree299b315d552c32c599754086a2f9acb61187c393
parente7868dc6a79daec4f46552fa5c99f88e4eb8de4c (diff)
downloadgcc-297aa668293d55ffe100d810e92fbe592f262557.zip
gcc-297aa668293d55ffe100d810e92fbe592f262557.tar.gz
gcc-297aa668293d55ffe100d810e92fbe592f262557.tar.bz2
Remove trailing comma to avoid pedantic warning in C++ 98 mode: comma at end of enumerator list
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/include/cpplib.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index cc5c575..65e8f40 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-05 Martin Sebor <msebor@redhat.com>
+
+ * include/cpplib.h (cpp_builtin_type): Remove trailing comma to
+ avoid pedantic warnings in C++ 98 mode.
+
2020-02-04 Jakub Jelinek <jakub@redhat.com>
* macro.c (builtin_has_include): Diagnose __has_include* use outside
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 07caadb..03cc72a 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -862,7 +862,7 @@ enum cpp_builtin_type
BT_HAS_ATTRIBUTE, /* `__has_attribute(x)' */
BT_HAS_BUILTIN, /* `__has_builtin(x)' */
BT_HAS_INCLUDE, /* `__has_include(x)' */
- BT_HAS_INCLUDE_NEXT, /* `__has_include_next(x)' */
+ BT_HAS_INCLUDE_NEXT /* `__has_include_next(x)' */
};
#define CPP_HASHNODE(HNODE) ((cpp_hashnode *) (HNODE))