Author
anonymous
about 5 years ago
Language
Compiler
Options
Author
anonymous
about 5 years ago
$
prog.c:123:1: warning: 'fastcall' attribute ignored [-Wattributes]
123 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c: In function 'write_int16_t':
prog.c:111:37: error: expected expression before 'int64_t'
111 | int8_t: int64_t, \
| ^~~~~~~
prog.c:16:5: note: in definition of macro '_WRITE_INT'
16 | MAX_T newVal = 0; \
| ^~~~~
prog.c:121:54: note: in expansion of macro 'CHOICE_MAX_TYPE'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c:16:11: error: expected ';' before 'newVal'
16 | MAX_T newVal = 0; \
| ^~~~~~
prog.c:121:22: note: in expansion of macro '_WRITE_INT'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | WRITE_INT(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:121:36: note: in expansion of macro 'MM_IS_SIGNED_'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c:33:17: error: 'newVal' undeclared (first use in this function)
33 | newVal = newVal * 10; \
| ^~~~~~
prog.c:121:22: note: in expansion of macro '_WRITE_INT'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c:33:17: note: each undeclared identifier is reported only once for each function it appears in
33 | newVal = newVal * 10; \
| ^~~~~~
prog.c:121:22: note: in expansion of macro '_WRITE_INT'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | 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:121:22: note: in expansion of macro '_WRITE_INT'
121 | #define WRITE_INT(T) _WRITE_INT(T, MM_IS_SIGNED_(T), CHOICE_MAX_TYPE(T), MIN_OF(T), MAX_OF(T))
| ^~~~~~~~~~
prog.c:123:1: note: in expansion of macro 'WRITE_INT'
123 | WRITE_INT(int16_t)
| ^~~~~~~~~
prog.c: In function 'main':
prog.c:127:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
127 | printf("X: %ld %ld\n", MIN_OF(uint32_t), MAX_OF(uint32_t));
| ~~^
| |
| long int
| %lld
prog.c:127:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long unsigned int' [-Wformat=]
127 | printf("X: %ld %ld\n", MIN_OF(uint32_t), MAX_OF(uint32_t));
| ~~^
| |
| long int
| %lld
Exit Code:
1