diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-06-17 22:15:01 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-08-10 17:25:25 +0200 |
commit | c3392a9fccc04129816057b1184c651171034376 (patch) | |
tree | 68398d60c87a162a66a138a0f41006f4b1d6d712 /apt-pkg/contrib | |
parent | 1b36b5fa1b8dbd76aec7ddd4ffe72f8515c29038 (diff) |
some CXXFLAGS housekeeping
More warnings are always better.
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/sptr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/contrib/sptr.h b/apt-pkg/contrib/sptr.h index 9df0e44a7..e2e811b1d 100644 --- a/apt-pkg/contrib/sptr.h +++ b/apt-pkg/contrib/sptr.h @@ -60,7 +60,15 @@ class SPtrArray inline SPtrArray(T *Ptr) : Ptr(Ptr) {}; inline SPtrArray() : Ptr(0) {}; +#if __GNUC__ >= 4 + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" + // gcc warns about this, but we can do nothing hereā¦ +#endif inline ~SPtrArray() {delete [] Ptr;}; +#if __GNUC__ >= 4 + #pragma GCC diagnostic pop +#endif }; #endif |