aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgWriter.h
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2017-07-08 02:00:49 -0700
committerSteve Kondik <shade@chemlab.org>2017-07-08 02:28:12 -0700
commit1f5d4b1310e7e94dbf24d49959856edfb3707668 (patch)
tree9a2b56e0ab1cc9c11d83e2cb19e3371b112faeb3 /common/rfb/SMsgWriter.h
parentb315dfae97c7c24b8743794bee9433c70b85b051 (diff)
downloadtigervnc-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/SMsgWriter.h')
-rw-r--r--common/rfb/SMsgWriter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h
index 548b8e8e..6c665b65 100644
--- a/common/rfb/SMsgWriter.h
+++ b/common/rfb/SMsgWriter.h
@@ -32,7 +32,7 @@ namespace rdr { class OutStream; }
namespace rfb {
class ConnParams;
- class ScreenSet;
+ struct ScreenSet;
class SMsgWriter {
public: