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:
committed by
Carlos R. Mafra
parent
04f50a0833
commit
787036551f
@@ -31,6 +31,10 @@
|
|||||||
|
|
||||||
#include <jpeglib.h>
|
#include <jpeglib.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_STDNORETURN
|
||||||
|
#include <stdnoreturn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wraster.h"
|
#include "wraster.h"
|
||||||
#include "imgformat.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:
|
* 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 */
|
/* cinfo->err really points to a my_error_mgr struct, so coerce pointer */
|
||||||
my_error_ptr myerr = (my_error_ptr) cinfo->err;
|
my_error_ptr myerr = (my_error_ptr) cinfo->err;
|
||||||
|
|||||||
Reference in New Issue
Block a user