Remove trailing comma to avoid pedantic warning in C++ 98 mode: comma at end of enumerator list

This commit is contained in:
Martin Sebor 2020-02-05 17:11:38 -07:00
parent e7868dc6a7
commit 297aa66829
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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))