[MDEV-16892] compiler warnings of gcc 7 in tabjson.ccp Created: 2018-08-03 Updated: 2018-08-09 Resolved: 2018-08-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Olivier Bertrand |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
|
| Comments |
| Comment by Olivier Bertrand [ 2018-08-08 ] | ||||||||||
|
Just a warning from a parano compiler. | ||||||||||
| Comment by Daniel Black [ 2018-08-09 ] | ||||||||||
|
Just an ignored bug from a developer who can't code to the standard of the compiler. When you start ignoring warnings you get code that works by pure dumb luck. You know the difference between a pointer and value right? Or warnings like A culture of ignoring warnings or attributing them to parano compliers isn't very reassuring and reflects beyond the connect engine to mariadb overall. | ||||||||||
| Comment by Olivier Bertrand [ 2018-08-09 ] | ||||||||||
|
Sure enough, but it depends on the warning. I just spent several days fixing But this one is the most stupid one I know. It just says that instead of:
this compiler requires:
Why not but, in addition, if this is regarded as a bug, it is a gcc compiler bug. Indeed, this declaration does exist in tabjson.h line 19 that is included by tabjson.cpp (unless perhaps you are using an old MariaDB version?) This is why I reported it as "Not a bug" and not "Won't fix" because it was not ignored but already fixed. Anyway, thanks for reporting warnings that are not issued by all compilers, but because they are reported as "bugs", they should not be over qualify as "Major" when they are clearly not. |