]> granicus.if.org Git - taglib/commitdiff
Added GCC pragma to suppress non-virtual dtor warning which is being preserved
authorAndrew Coles <andrew.i.coles@googlemail.com>
Sun, 22 Mar 2009 19:06:05 +0000 (19:06 +0000)
committerAndrew Coles <andrew.i.coles@googlemail.com>
Sun, 22 Mar 2009 19:06:05 +0000 (19:06 +0000)
to maintain BIC.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@942876 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/fileref.h
taglib/mpeg/id3v1/id3v1tag.h

index cb4c2b41ccf0874971aaf496a2cb194bbb2cef2d..db2b7c77e3463abb530380da4b3ac7a84a1b33ed 100644 (file)
@@ -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
index 8dc60c3d23a7b25bbc9e7164c6f1b451c9892a03..c8e4f99f0ca20725b18b445b67cb5d8dc09b3618 100644 (file)
@@ -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.