You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tools.c: do not use keywords 'nullptr' as a variable in code
Without the patch:
tools.c: In function ‘drop_core’:
tools.c:6251:23: error: expected identifier or ‘(’ before ‘nullptr’
6251 | volatile int *nullptr;
| ^~~~~~~
tools.c:6259:17: error: lvalue required as left operand of assignment
6259 | nullptr = NULL;
| ^
tools.c:6261:21: error: invalid type argument of unary ‘*’ (have ‘typeof (nullptr)’)
6261 | i = *nullptr;
| ^~~~~~~~
make[6]: *** [Makefile:345: tools.o] Error 1
Note: this was observed on gcc version 15.0.1
Signed-off-by: Lianbo Jiang <[email protected]>
0 commit comments