aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-12 13:35:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-26 10:12:45 +0200
commit4afc641fdd8c03bd708f50e0c3691b5de7ea1dba (patch)
treea0bcbfa2c4ae1111ad3d49390c7abd0ae3a9a2ed /nxcomp/src
parentb3a3382ad8e162b0a63bc71ebb2238b14875cdc5 (diff)
downloadnx-libs-4afc641fdd8c03bd708f50e0c3691b5de7ea1dba.tar.gz
nx-libs-4afc641fdd8c03bd708f50e0c3691b5de7ea1dba.tar.bz2
nx-libs-4afc641fdd8c03bd708f50e0c3691b5de7ea1dba.zip
nxcomp: Add __attribute__((noreturn)) to more functions where appropriate.
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Channel.h2
-rw-r--r--nxcomp/src/Jpeg.cpp2
-rw-r--r--nxcomp/src/Transport.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/nxcomp/src/Channel.h b/nxcomp/src/Channel.h
index 93b022630..7e432416a 100644
--- a/nxcomp/src/Channel.h
+++ b/nxcomp/src/Channel.h
@@ -519,7 +519,7 @@ class Channel
// Set up the split stores.
//
- void handleSplitStoreError(int resource);
+ void handleSplitStoreError(int resource) __attribute__((noreturn));
void handleSplitStoreAlloc(List *list, int resource);
void handleSplitStoreRemove(List *list, int resource);
diff --git a/nxcomp/src/Jpeg.cpp b/nxcomp/src/Jpeg.cpp
index 64a537497..2e8044049 100644
--- a/nxcomp/src/Jpeg.cpp
+++ b/nxcomp/src/Jpeg.cpp
@@ -106,7 +106,7 @@ static int DecompressJpeg24(unsigned char *compressedData, int compressedLen,
static int DecompressJpeg32(unsigned char *compressedData, int compressedLen,
unsigned int w, unsigned int h, unsigned char *dstBuf, int byteOrder);
-void UnpackJpegErrorHandler(j_common_ptr cinfo);
+void UnpackJpegErrorHandler(j_common_ptr cinfo) __attribute__((noreturn));
//
// Colormap stuff.
diff --git a/nxcomp/src/Transport.h b/nxcomp/src/Transport.h
index 047396af6..4ae0e3c25 100644
--- a/nxcomp/src/Transport.h
+++ b/nxcomp/src/Transport.h
@@ -413,9 +413,9 @@ class AgentTransport : public Transport
// These two should never be called.
//
- virtual int flush();
+ virtual int flush() __attribute__((noreturn));
- virtual int drain(int limit, int timeout);
+ virtual int drain(int limit, int timeout) __attribute((noreturn));
//
// Same as in the base class.