diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-28 15:48:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-28 15:48:53 +0100 |
commit | 36aae9cda39e08c450ecef048f763bdd023d03a2 (patch) | |
tree | b1b91a1161c2eb9d40eb6df8695ce5cb9d9874f7 /fpicker | |
parent | 26a21cd45bd499c029f3d0344410dc808761987e (diff) |
having a stab at silencing this warning
i.e. use same pattern as 079c042d1994b6a8532e72e55aaaa617a7acd387
Change-Id: I149ed933567fcdc5e404589b2b77bba7e02c5b37
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index 25bd92389aa6..66c35369e8d9 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -773,9 +773,14 @@ void SalAquaFilePicker::updateSaveFileNameExtension() { rtl::OUString suffix = (*(aStringList.begin())).copy(1); NSString *requiredFileType = [NSString stringWithOUString:suffix]; +#if defined(LIBO_WERROR) && defined(__clang__) && MACOSX_SDK_VERSION >= 1070 +#pragma GCC diagnostic push #pragma GCC diagnostic warning "-Wdeprecated-declarations" +#endif [m_pDialog setRequiredFileType:requiredFileType]; -#pragma GCC diagnostic error "-Wdeprecated-declarations" +#if defined(LIBO_WERROR) && defined(__clang__) && MACOSX_SDK_VERSION >= 1070 +#pragma GCC diagnostic pop +#endif OSL_TRACE("disallowing other file types"); [m_pDialog setAllowsOtherFileTypes:NO]; |