diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-10-22 10:48:49 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-10-22 10:48:49 +0200 |
commit | 9f760215955b167be37dc0699b144769c1e8a9a1 (patch) | |
tree | 692df336af98140e71ec5b52e65e773db30877bd /include/my_global.h | |
parent | be5b2072b4db88e151e623e592ac8436659e2fba (diff) | |
download | mariadb-git-9f760215955b167be37dc0699b144769c1e8a9a1.tar.gz |
typedef is better than __attribute__ ((unused))
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h index c2aba8ae8aa..f2d5a0e5013 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -484,8 +484,7 @@ C_MODE_END #define compile_time_assert(X) \ do \ { \ - char compile_time_assert[(X) ? 1 : -1] \ - __attribute__ ((unused)); \ + typedef char compile_time_assert[(X) ? 1 : -1]; \ } while(0) #endif |