diff --git a/headers/os/storage/Statable.h b/headers/os/storage/Statable.h index 4dcb4bd5d1..32d241073f 100644 --- a/headers/os/storage/Statable.h +++ b/headers/os/storage/Statable.h @@ -17,7 +17,9 @@ class BVolume; class BStatable { public: +#if __GNUC__ > 3 virtual ~BStatable(); +#endif virtual status_t GetStat(struct stat *st) const = 0; diff --git a/src/kits/storage/Statable.cpp b/src/kits/storage/Statable.cpp index 57acb7771a..3c661523c2 100644 --- a/src/kits/storage/Statable.cpp +++ b/src/kits/storage/Statable.cpp @@ -20,9 +20,11 @@ #include +#if __GNUC__ > 3 BStatable::~BStatable() { } +#endif /*! \fn status_t GetStat(struct stat *st) const