summaryrefslogtreecommitdiffstats
path: root/client/red_client.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-04-25 11:29:43 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-04-25 11:31:14 +0100
commitef78242e19e8d0599c74aa34fad0fbb5a56cdb20 (patch)
tree8345d803d0849540f23d5c69cc4e8e9b01954430 /client/red_client.h
parent49e2b2679f8fdbcddab0e1c022189966d7a7d103 (diff)
downloadspice-ef78242e19e8d0599c74aa34fad0fbb5a56cdb20.tar.gz
spice-ef78242e19e8d0599c74aa34fad0fbb5a56cdb20.tar.xz
spice-ef78242e19e8d0599c74aa34fad0fbb5a56cdb20.zip
Add some more 'noreturn' annotations
Methods which longjump, unconditionally raise an exception, or call _exit() cannot return control to the caller so should be annotated with 'noreturn' Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'client/red_client.h')
-rw-r--r--client/red_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/red_client.h b/client/red_client.h
index a2f00c41..c4b418a2 100644
--- a/client/red_client.h
+++ b/client/red_client.h
@@ -99,7 +99,7 @@ private:
class GlzDecoderWindowDebug: public GlzDecoderDebug {
public:
- virtual void error(const std::string& str)
+ virtual SPICE_GNUC_NORETURN void error(const std::string& str)
{
throw Exception(str);
}