Commit b413181
authored
path.cpp: fixed
building with the GUI enabled will implicitly switch the standard to
C++17.
```
/home/runner/work/cppcheck/cppcheck/lib/path.cpp: In function ‘bool hasEmacsCppMarker(const char*)’:
/home/runner/work/cppcheck/cppcheck/lib/path.cpp:246:40: error: useless cast to type ‘char*’ [-Werror=useless-cast]
246 | const char * const res = fgets(const_cast<char*>(buf.data()), buf.size(), fp);
|
```-Wuseless-cast GCC warning with C++17 (danmar#7771)1 parent f8e8765 commit b413181
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
245 | 251 | | |
246 | | - | |
| 252 | + | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
| |||
0 commit comments