Tool/software:
Arm Compiler/Linker shows error as below, for the standard lib header file strings.h, when -O1 or above optimization is enabled.
C:\ti\ti-cgt-armllvm_4.0.0.LTS\include\c\strings.h:83:11: error: cannot initialize return object of type 'char *' with an rvalue of type 'const char *'
83 | return strchr(a, b);
| ^~~~~~~~~~~~
C:\ti\ti-cgt-armllvm_4.0.0.LTS\include\c\strings.h:90:11: error: cannot initialize return object of type 'char *' with an rvalue of type 'const char *'
90 | return strrchr( a, b);
| ^~~~~~~~~~~~~~
2 errors generated.