Commit 0258e15
authored
avoid
```
In file included from /home/user/cppcheck/externals/tinyxml2/tinyxml2.cpp:24:
/home/user/cppcheck/externals/tinyxml2/tinyxml2.h:442:26: warning: useless cast to type ‘size_t’ {aka ‘long unsigned int’} [-Wuseless-cast]
442 | char itemData[static_cast<size_t>(ITEM_SIZE)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```-Wuseless-cast GCC warnings with TinyXML-2 (danmar#7499)1 parent d8d4ea3 commit 0258e15
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments