diff options
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 6 | ||||
-rw-r--r-- | libcpp/include/line-map.h | 6 | ||||
-rw-r--r-- | libcpp/mkdeps.c | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index ff5f0aa..c6e8e04 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2019-07-09 Martin Sebor <msebor@redhat.com> + + * include/line-map.h: Change class-key from class to struct and vice + versa to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod. + * mkdeps.c: Same. + 2019-07-03 Martin Liska <mliska@suse.cz> * line-map.c (linemap_get_expansion_filename): Remove diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 7649700..3961b63 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -770,7 +770,8 @@ struct GTY(()) location_adhoc_data_map { }; /* A set of chronological line_map structures. */ -struct GTY(()) line_maps { +class GTY(()) line_maps { +public: ~line_maps (); @@ -1783,8 +1784,9 @@ protected: of localized text, and a flag to determine if the caller should "free" the buffer. */ -struct label_text +class label_text { +public: label_text () : m_buffer (NULL), m_caller_owned (false) {} diff --git a/libcpp/mkdeps.c b/libcpp/mkdeps.c index 50f0fb2..6693c21 100644 --- a/libcpp/mkdeps.c +++ b/libcpp/mkdeps.c @@ -29,7 +29,7 @@ along with this program; see the file COPYING3. If not see /* Keep this structure local to this file, so clients don't find it easy to start making assumptions. */ -struct mkdeps +class mkdeps { public: /* T has trivial cctor & dtor. */ |