X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.h;h=79b5987ae05a329691ba73f546390c7a0f364c11;hp=e12c2c422e114f72c5e2739af2a94a8fec575688;hb=6dea8d2a6695a45aa6209425cdcfb4eabf704340;hpb=ac4fc36aa70ffefb6b9632dc0abea5cbbce5387b diff --git a/util.h b/util.h index e12c2c4..79b5987 100644 --- a/util.h +++ b/util.h @@ -47,12 +47,6 @@ void combine_two_samples(float w1, float w2, float *offset, float *total_weight, #define check_error() { int err = glGetError(); if (err != GL_NO_ERROR) { printf("GL error 0x%x at %s:%d\n", err, __FILE__, __LINE__); exit(1); } } #endif -#ifdef __GNUC__ -#define MUST_CHECK_RESULT __attribute__((warn_unused_result)) -#else -#define MUST_CHECK_RESULT -#endif - // CHECK() is like assert(), but retains any side effects no matter the compilation mode. #ifdef NDEBUG #define CHECK(x) (void)(x)