1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +01:00

wrlib: Added noreturn attribute to appropriate functions

clang is a bit more strict on the attribute usage, so let's comply.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-15 18:46:44 +01:00
committed by Carlos R. Mafra
parent 04f50a0833
commit 787036551f

View File

@@ -31,6 +31,10 @@
#include <jpeglib.h>
#ifdef HAVE_STDNORETURN
#include <stdnoreturn.h>
#endif
#include "wraster.h"
#include "imgformat.h"
@@ -76,7 +80,7 @@ typedef struct my_error_mgr *my_error_ptr;
* Here's the routine that will replace the standard error_exit method:
*/
static void my_error_exit(j_common_ptr cinfo)
static noreturn void my_error_exit(j_common_ptr cinfo)
{
/* cinfo->err really points to a my_error_mgr struct, so coerce pointer */
my_error_ptr myerr = (my_error_ptr) cinfo->err;