X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fos.h;h=70e603cbe27ab5148ccc42710c4ff36d8cabd7c6;hb=0b83551352338fb45b285c44d6baccd867f05b6d;hp=4913d7b066244848fdabad850d58b0e8bd26dd38;hpb=b492c10e731625d7c000654de2372b54339f7c8d;p=deb_libcec.git diff --git a/src/lib/platform/os.h b/src/lib/platform/os.h index 4913d7b..70e603c 100644 --- a/src/lib/platform/os.h +++ b/src/lib/platform/os.h @@ -31,6 +31,15 @@ * http://www.pulse-eight.net/ */ +#ifdef UNUSED +#elif defined(__GNUC__) +#define UNUSED(x) UNUSED_ ## x __attribute__((unused)) +#elif defined(__LCLINT__) +#define UNUSED(x) /*@unused@*/ x +#else +#define UNUSED(x) x +#endif + #if (defined(_WIN32) || defined(_WIN64)) #include "windows/os-types.h" #else