From: Andrew Coles Date: Sun, 22 Mar 2009 19:06:05 +0000 (+0000) Subject: Added GCC pragma to suppress non-virtual dtor warning which is being preserved X-Git-Tag: v1.6rc1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56e876612609dc6ead7a8571158f3619e1e95540;p=taglib Added GCC pragma to suppress non-virtual dtor warning which is being preserved to maintain BIC. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@942876 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/taglib/fileref.h b/taglib/fileref.h index cb4c2b41..db2b7c77 100644 --- a/taglib/fileref.h +++ b/taglib/fileref.h @@ -91,6 +91,12 @@ namespace TagLib { class TAGLIB_EXPORT FileTypeResolver { +#ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1) +#pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +#endif +#endif + public: // do not fix compiler warning about missing virtual destructor // since this would not be binary compatible diff --git a/taglib/mpeg/id3v1/id3v1tag.h b/taglib/mpeg/id3v1/id3v1tag.h index 8dc60c3d..c8e4f99f 100644 --- a/taglib/mpeg/id3v1/id3v1tag.h +++ b/taglib/mpeg/id3v1/id3v1tag.h @@ -59,6 +59,12 @@ namespace TagLib { class TAGLIB_EXPORT StringHandler { +#ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1) +#pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +#endif +#endif + public: // BIC: Add virtual destructor.