Silence Xcode 11 warnings about shadowing read()

This commit is contained in:
Václav Slavík
2020-01-20 19:19:40 +01:00
parent 11780f69aa
commit 7a5618df77
2 changed files with 10 additions and 0 deletions

View File

@@ -420,6 +420,9 @@ private:
class WXDLLIMPEXP_BASE wxStreamBuffer
{
public:
// suppress Xcode 11 warning about shadowing global read() symbol
wxCLANG_WARNING_SUPPRESS(shadow)
enum BufMode
{
read,
@@ -427,6 +430,8 @@ public:
read_write
};
wxCLANG_WARNING_RESTORE(shadow)
wxStreamBuffer(wxStreamBase& stream, BufMode mode)
{
InitWithStream(stream, mode);