Silence Xcode 11 warnings about shadowing read()
This commit is contained in:
@@ -32,11 +32,16 @@ class WXDLLIMPEXP_BASE wxFile
|
|||||||
public:
|
public:
|
||||||
// more file constants
|
// more file constants
|
||||||
// -------------------
|
// -------------------
|
||||||
|
// suppress Xcode 11 warning about shadowing global read() symbol
|
||||||
|
wxCLANG_WARNING_SUPPRESS(shadow)
|
||||||
|
|
||||||
// opening mode
|
// opening mode
|
||||||
enum OpenMode { read, write, read_write, write_append, write_excl };
|
enum OpenMode { read, write, read_write, write_append, write_excl };
|
||||||
// standard values for file descriptor
|
// standard values for file descriptor
|
||||||
enum { fd_invalid = -1, fd_stdin, fd_stdout, fd_stderr };
|
enum { fd_invalid = -1, fd_stdin, fd_stdout, fd_stderr };
|
||||||
|
|
||||||
|
wxCLANG_WARNING_RESTORE(shadow)
|
||||||
|
|
||||||
// static functions
|
// static functions
|
||||||
// ----------------
|
// ----------------
|
||||||
// check whether a regular file by this name exists
|
// check whether a regular file by this name exists
|
||||||
|
@@ -420,6 +420,9 @@ private:
|
|||||||
class WXDLLIMPEXP_BASE wxStreamBuffer
|
class WXDLLIMPEXP_BASE wxStreamBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// suppress Xcode 11 warning about shadowing global read() symbol
|
||||||
|
wxCLANG_WARNING_SUPPRESS(shadow)
|
||||||
|
|
||||||
enum BufMode
|
enum BufMode
|
||||||
{
|
{
|
||||||
read,
|
read,
|
||||||
@@ -427,6 +430,8 @@ public:
|
|||||||
read_write
|
read_write
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wxCLANG_WARNING_RESTORE(shadow)
|
||||||
|
|
||||||
wxStreamBuffer(wxStreamBase& stream, BufMode mode)
|
wxStreamBuffer(wxStreamBase& stream, BufMode mode)
|
||||||
{
|
{
|
||||||
InitWithStream(stream, mode);
|
InitWithStream(stream, mode);
|
||||||
|
Reference in New Issue
Block a user