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
This commit is contained in:
Andrew Coles 2009-03-22 19:06:05 +00:00
parent 36a398a156
commit 56e8766126
2 changed files with 12 additions and 0 deletions

View 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

View 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.