diff options
author | Steve Kondik <shade@chemlab.org> | 2017-07-08 02:00:49 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2017-07-08 02:28:12 -0700 |
commit | 1f5d4b1310e7e94dbf24d49959856edfb3707668 (patch) | |
tree | 9a2b56e0ab1cc9c11d83e2cb19e3371b112faeb3 /common/rfb/Decoder.h | |
parent | b315dfae97c7c24b8743794bee9433c70b85b051 (diff) | |
download | tigervnc-1f5d4b1310e7e94dbf24d49959856edfb3707668.tar.gz tigervnc-1f5d4b1310e7e94dbf24d49959856edfb3707668.zip |
rfb: Fix struct-vs-class warnings
Clang doesn't like when struct and class are used to refer
to the same thing interchangeably.
Fixes all instances of:
In file included from /home/shade/dev/tigervnc/common/rfb/CConnection.cxx:29:
In file included from /home/shade/dev/tigervnc/common/rfb/CConnection.h:28:
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:35:3: error: class 'Exception' was previously declared as a struct [-Werror,-Wmismatched-tags]
class Exception;
^
/home/shade/dev/tigervnc/common/rdr/Exception.h:32:10: note: previous use is here
struct Exception {
^
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:35:3: note: did you mean struct here?
class Exception;
^~~~~
struct
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:43:3: error: class 'Rect' was previously declared as a struct [-Werror,-Wmismatched-tags]
class Rect;
^
/home/shade/dev/tigervnc/common/rfb/Rect.h:68:10: note: previous use is here
struct Rect {
^
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:43:3: note: did you mean struct here?
class Rect;
^~~~~
struct
Diffstat (limited to 'common/rfb/Decoder.h')
-rw-r--r-- | common/rfb/Decoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/rfb/Decoder.h b/common/rfb/Decoder.h index 3840b3fd..86ee4ef8 100644 --- a/common/rfb/Decoder.h +++ b/common/rfb/Decoder.h @@ -27,9 +27,10 @@ namespace rdr { namespace rfb { class ConnParams; class ModifiablePixelBuffer; - class Rect; class Region; + struct Rect; + enum DecoderFlags { // A constant for decoders that don't need anything special DecoderPlain = 0, |