diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-09-29 00:36:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-09-29 00:54:46 +0300 |
commit | 78f81fdadbb2e1f461e8dd3edd2e79f139f94206 (patch) | |
tree | 2a872054522bbc93a0c81cdffda3c432e4ed048c /fpicker | |
parent | 17cc38231c743b33406c5184488d1831930dfc3b (diff) |
WaE: 'fileAttributesAtPath:traverseLink:' is deprecated
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/FilterHelper.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fpicker/source/aqua/FilterHelper.cxx b/fpicker/source/aqua/FilterHelper.cxx index c0a590977ca3..d1f5a7dde6f2 100644 --- a/fpicker/source/aqua/FilterHelper.cxx +++ b/fpicker/source/aqua/FilterHelper.cxx @@ -386,6 +386,17 @@ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno:: DBG_PRINT_EXIT(CLASS_NAME, __func__); } +// 'fileAttributesAtPath:traverseLink:' is deprecated +#if defined LIBO_WERROR && defined __GNUC__ +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +#if GCC_VERSION >= 40201 +#pragma GCC diagnostic warning "-Wdeprecated-declarations" +#define DID_TURN_OFF_DEPRECATED_DECLARATIONS_WARNING +#endif +#endif + sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); @@ -442,6 +453,10 @@ sal_Bool FilterHelper::filenameMatchesFilter(NSString* sFilename) return sal_False; } +#ifdef DID_TURN_OFF_DEPRECATED_DECLARATIONS_WARNING +#pragma GCC diagnostic error "-Wdeprecated-declarations" +#endif + FilterList* FilterHelper::getFilterList() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); DBG_PRINT_EXIT(CLASS_NAME, __func__); |