From: Martin Sebor Date: Thu, 6 Feb 2020 00:11:38 +0000 (-0700) Subject: Remove trailing comma to avoid pedantic warning in C++ 98 mode: comma at end of enume... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=297aa668293d55ffe100d810e92fbe592f262557;p=gcc.git Remove trailing comma to avoid pedantic warning in C++ 98 mode: comma at end of enumerator list --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index cc5c575ca83..65e8f400679 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2020-02-05 Martin Sebor + + * include/cpplib.h (cpp_builtin_type): Remove trailing comma to + avoid pedantic warnings in C++ 98 mode. + 2020-02-04 Jakub Jelinek * macro.c (builtin_has_include): Diagnose __has_include* use outside diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index 07caadb88e7..03cc72a12e2 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))