diff options
author | V V <vvaltman@aurum> | 2015-10-02 23:25:43 +0300 |
---|---|---|
committer | V V <vvaltman@aurum> | 2015-10-02 23:25:43 +0300 |
commit | 354b049e04c68ea39eb5d13da259bbc82294beb8 (patch) | |
tree | e37fc2a63126036c573310ff91387606208cf187 | |
parent | 237d7016f4f1f23ee2c3b4638f4893ec456837e9 (diff) |
fixed CE on some gcc versions
-rw-r--r-- | crypto/meta.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/meta.h b/crypto/meta.h index 75739f6..fe0be2f 100644 --- a/crypto/meta.h +++ b/crypto/meta.h @@ -26,13 +26,14 @@ * most compilers: http://stackoverflow.com/a/8702750/3070326 */ #define TGLC_WRAPPER_ASSOC(NAME,CORE) \ - static TGLC_ ## NAME *wrap_ ## NAME (const CORE *p); \ + static TGLC_ ## NAME *wrap_ ## NAME (const CORE *p) \ + __attribute__ ((unused)); \ + static TGLC_ ## NAME *wrap_ ## NAME (const CORE *p) \ + __attribute__ ((unused)); \ static CORE *unwrap_ ## NAME (const TGLC_ ## NAME *p) { \ - assert (wrap_ ## NAME); \ return (CORE *)p; \ } \ static TGLC_ ## NAME *wrap_ ## NAME (const CORE *p) { \ - assert (unwrap_ ## NAME); \ return (TGLC_ ## NAME *)p; \ } |