Though __func__ was introduced in C99, this is preferable to __FUNCTION__, an obsolete GCC extension. Found with gcc -Wpedantic.
Unified · Split
| @@ -1061,7 +1061,7 @@ struct filespec { · 1060 unmodified lines | ||
| 1061 | 1061 | #define TOK_TWOSHARPS 0xa3 /* ## preprocessing token */ |
| 1062 | 1062 | #define TOK_PLCHLDR 0xa4 /* placeholder token as defined in C99 */ |
| 1063 | 1063 | #define TOK_NOSUBST 0xa5 /* means following token has already been pp'd */ |
| 1064 | −#define TOK_PPJOIN 0xa6 /* A '##' in the right position to mean pasting */ | |
| 1064 | +#define TOK_PPJOIN 0xa6 /* A '##' in the right position to mean pasting */ | |
| 1065 | 1065 | |
| 1066 | 1066 | /* assignment operators */ |
| 1067 | 1067 | #define TOK_A_ADD 0xb0 |
| @@ -1238,7 +1238,7 @@ PUB_FUNC void _tcc_error_noabort(const char *fmt, ...) PRINTF_LIKE(1,2); · 170 unmodified lines | ||
| 1238 | 1238 | PUB_FUNC NORETURN void _tcc_error(const char *fmt, ...) PRINTF_LIKE(1,2); |
| 1239 | 1239 | PUB_FUNC void _tcc_warning(const char *fmt, ...) PRINTF_LIKE(1,2); |
| 1240 | 1240 | #define tcc_internal_error(msg) tcc_error("internal compiler error\n"\ |
| 1241 | − "%s:%d: in %s(): " msg, __FILE__,__LINE__,__FUNCTION__) | |
| 1241 | + "%s:%d: in %s(): " msg, __FILE__,__LINE__,__func__) | |
| 1242 | 1242 | |
| 1243 | 1243 | /* other utilities */ |
| 1244 | 1244 | ST_FUNC void dynarray_add(void *ptab, int *nb_ptr, void *data); |