Commit e9b878ce authored by Jim Bankoski's avatar Jim Bankoski

warnings.c : fixes dereference to null warning

Change-Id: I03cceb4b92b7362e90f3ea61342341246b9a11ab
parent b29d5173
...@@ -103,17 +103,25 @@ struct VpxInputContext { ...@@ -103,17 +103,25 @@ struct VpxInputContext {
extern "C" { extern "C" {
#endif #endif
#if defined(__GNUC__)
#define VPX_NO_RETURN __attribute__((noreturn))
#else
#define VPX_NO_RETURN
#endif
/* Sets a stdio stream into binary mode */ /* Sets a stdio stream into binary mode */
FILE *set_binary_mode(FILE *stream); FILE *set_binary_mode(FILE *stream);
void die(const char *fmt, ...); void die(const char *fmt, ...) VPX_NO_RETURN;
void fatal(const char *fmt, ...); void fatal(const char *fmt, ...) VPX_NO_RETURN;
void warn(const char *fmt, ...); void warn(const char *fmt, ...);
void die_codec(vpx_codec_ctx_t *ctx, const char *s); void die_codec(vpx_codec_ctx_t *ctx, const char *s) VPX_NO_RETURN;
/* The tool including this file must define usage_exit() */ /* The tool including this file must define usage_exit() */
void usage_exit(); void usage_exit() VPX_NO_RETURN;
#undef VPX_NO_RETURN
int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame); int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment