Commit 921d893
authored
cppcheckexecutor.cpp: avoid
```
/Users/runner/work/cppcheck/cppcheck/cli/cppcheckexecutor.cpp:746:9: error: cast from 'const int *' to 'int *' drops const qualifier [-Werror,-Wcast-qual]
746 | if (WIFEXITED(res)) {
| ^
[ 2%] Building CXX object lib/CMakeFiles/cppcheck-core.dir/symboldatabase.cpp.o
/Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/sys/wait.h:152:26: note: expanded from macro 'WIFEXITED'
152 | #define WIFEXITED(x) (_WSTATUS(x) == 0)
| ^
/Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/sys/wait.h:136:26: note: expanded from macro '_WSTATUS'
136 | #define _WSTATUS(x) (_W_INT(x) & 0177)
| ^
/Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/sys/wait.h:131:34: note: expanded from macro '_W_INT'
131 | #define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */
| ^
```-Wcast-qual warnings on macOS (#7749)1 parent 817013f commit 921d893
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
736 | 739 | | |
737 | 740 | | |
738 | 741 | | |
| |||
0 commit comments