Author
anonymous
about 5 years ago
Language
Compiler
Options
Author
anonymous
about 5 years ago
$
prog.c:112:1: warning: 'fastcall' attribute ignored [-Wattributes]
112 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c: In function 'write_int16_t':
prog.c:108:1: error: expected specifier-qualifier-list before ')' token
108 | )
| ^
prog.c:18:10: note: in definition of macro '_WRITE_INT'
18 | if ( IS_SIGNED && *(c += 1) != '\0' && value[0] == '-' ) \
| ^~~~~~~~~
prog.c:110:36: note: in expansion of macro 'MM_IS_SIGNED_'
110 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), int64_t, MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~~~~
prog.c:112:1: note: in expansion of macro 'WRITE_INT'
112 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c:90:17: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'long long unsigned int' [-Wsign-compare]
90 | if ( newVal > MAX_OF_T || newVal < MIN_OF_T ) \
| ^
prog.c:110:22: note: in expansion of macro '_WRITE_INT'
110 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), int64_t, MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:112:1: note: in expansion of macro 'WRITE_INT'
112 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c:11:121: warning: unused parameter 'min_val' [-Wunused-parameter]
11 | static uint8_t __attribute__((fastcall)) write_##T(T * restrict const field, const char * restrict const value, const T min_val) \
| ~~~~~~~~^~~~~~~
prog.c:110:22: note: in expansion of macro '_WRITE_INT'
110 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), int64_t, MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:112:1: note: in expansion of macro 'WRITE_INT'
112 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c: In function 'main':
prog.c:116:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
116 | printf("X: %ld %ld\n", MIN_OF(uint32_t), MAX_OF(uint32_t));
| ~~^
| |
| long int
| %lld
prog.c:116:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long unsigned int' [-Wformat=]
116 | printf("X: %ld %ld\n", MIN_OF(uint32_t), MAX_OF(uint32_t));
| ~~^
| |
| long int
| %lld
Exit Code:
1