Commit 50b0f6cc authored by Lev Walkin's avatar Lev Walkin
Browse files

gcc-izm removed

parent 4a4543ff
...@@ -65,7 +65,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -65,7 +65,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
int int
OBJECT_IDENTIFIER_get_single_arc(uint8_t *arcbuf, unsigned int arclen, signed int add, void *rvbufp, unsigned int rvsize) { OBJECT_IDENTIFIER_get_single_arc(uint8_t *arcbuf, unsigned int arclen, signed int add, void *rvbufp, unsigned int rvsize) {
unsigned LE __attribute__ ((unused)) = 1; /* Little endian (x86) */ unsigned LE GCC_NOTUSED = 1; /* Little endian (x86) */
uint8_t *arcend = arcbuf + arclen; /* End of arc */ uint8_t *arcend = arcbuf + arclen; /* End of arc */
unsigned int cache = 0; /* No more than 14 significant bits */ unsigned int cache = 0; /* No more than 14 significant bits */
unsigned char *rvbuf = (unsigned char *)rvbufp; unsigned char *rvbuf = (unsigned char *)rvbufp;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define INT_MAX ((int)(((unsigned int)-1) >> 1)) #define INT_MAX ((int)(((unsigned int)-1) >> 1))
#if !(defined(NAN) || defined(INFINITY)) #if !(defined(NAN) || defined(INFINITY))
static volatile double real_zero __attribute__ ((unused)) = 0.0; static volatile double real_zero GCC_NOTUSED = 0.0;
#endif #endif
#ifndef NAN #ifndef NAN
#define NAN (real_zero/real_zero) #define NAN (real_zero/real_zero)
...@@ -521,8 +521,8 @@ asn_double2REAL(REAL_t *st, double dbl_value) { ...@@ -521,8 +521,8 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
uint8_t buf[16]; /* More than enough for 8-byte dbl_value */ uint8_t buf[16]; /* More than enough for 8-byte dbl_value */
uint8_t dscr[sizeof(dbl_value)]; /* double value scratch pad */ uint8_t dscr[sizeof(dbl_value)]; /* double value scratch pad */
/* Assertion guards: won't even compile, if unexpected double size */ /* Assertion guards: won't even compile, if unexpected double size */
char assertion_buffer1[9 - sizeof(dbl_value)] __attribute__((unused)); char assertion_buffer1[9 - sizeof(dbl_value)] GCC_NOTUSED;
char assertion_buffer2[sizeof(dbl_value) - 7] __attribute__((unused)); char assertion_buffer2[sizeof(dbl_value) - 7] GCC_NOTUSED;
uint8_t *ptr = buf; uint8_t *ptr = buf;
uint8_t *mstop; /* Last byte of mantissa */ uint8_t *mstop; /* Last byte of mantissa */
unsigned int mval; /* Value of the last byte of mantissa */ unsigned int mval; /* Value of the last byte of mantissa */
......
...@@ -82,10 +82,16 @@ typedef unsigned int uint32_t; ...@@ -82,10 +82,16 @@ typedef unsigned int uint32_t;
#ifndef GCC_PRINTFLIKE #ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#endif #endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED __attribute__((unused))
#endif
#else #else
#ifndef GCC_PRINTFLIKE #ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) /* nothing */ #define GCC_PRINTFLIKE(fmt,var) /* nothing */
#endif #endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED
#endif
#endif #endif
#ifndef offsetof /* If not defined by <stddef.h> */ #ifndef offsetof /* If not defined by <stddef.h> */
......
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