]> source.dussan.org Git - tigervnc.git/commit
rfb: Fix struct-vs-class warnings
authorSteve Kondik <shade@chemlab.org>
Sat, 8 Jul 2017 09:00:49 +0000 (02:00 -0700)
committerSteve Kondik <shade@chemlab.org>
Sat, 8 Jul 2017 09:28:12 +0000 (02:28 -0700)
commit1f5d4b1310e7e94dbf24d49959856edfb3707668
tree9a2b56e0ab1cc9c11d83e2cb19e3371b112faeb3
parentb315dfae97c7c24b8743794bee9433c70b85b051
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
common/rfb/CMsgWriter.h
common/rfb/DecodeManager.h
common/rfb/Decoder.h
common/rfb/EncodeManager.h
common/rfb/SMsgWriter.h