mirror of https://gerrit.osmocom.org/asn1c
gcc-izm removed
This commit is contained in:
parent
4a4543ff64
commit
50b0f6ccd2
|
@ -65,7 +65,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||
|
||||
int
|
||||
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 */
|
||||
unsigned int cache = 0; /* No more than 14 significant bits */
|
||||
unsigned char *rvbuf = (unsigned char *)rvbufp;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
|
||||
|
||||
#if !(defined(NAN) || defined(INFINITY))
|
||||
static volatile double real_zero __attribute__ ((unused)) = 0.0;
|
||||
static volatile double real_zero GCC_NOTUSED = 0.0;
|
||||
#endif
|
||||
#ifndef NAN
|
||||
#define NAN (real_zero/real_zero)
|
||||
|
@ -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 dscr[sizeof(dbl_value)]; /* double value scratch pad */
|
||||
/* Assertion guards: won't even compile, if unexpected double size */
|
||||
char assertion_buffer1[9 - sizeof(dbl_value)] __attribute__((unused));
|
||||
char assertion_buffer2[sizeof(dbl_value) - 7] __attribute__((unused));
|
||||
char assertion_buffer1[9 - sizeof(dbl_value)] GCC_NOTUSED;
|
||||
char assertion_buffer2[sizeof(dbl_value) - 7] GCC_NOTUSED;
|
||||
uint8_t *ptr = buf;
|
||||
uint8_t *mstop; /* Last byte of mantissa */
|
||||
unsigned int mval; /* Value of the last byte of mantissa */
|
||||
|
|
|
@ -82,10 +82,16 @@ typedef unsigned int uint32_t;
|
|||
#ifndef GCC_PRINTFLIKE
|
||||
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
|
||||
#endif
|
||||
#ifndef GCC_NOTUSED
|
||||
#define GCC_NOTUSED __attribute__((unused))
|
||||
#endif
|
||||
#else
|
||||
#ifndef GCC_PRINTFLIKE
|
||||
#define GCC_PRINTFLIKE(fmt,var) /* nothing */
|
||||
#endif
|
||||
#ifndef GCC_NOTUSED
|
||||
#define GCC_NOTUSED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef offsetof /* If not defined by <stddef.h> */
|
||||
|
|
Loading…
Reference in New Issue