Menu

#7 gcc 12 error shows potential bug

Unstable (example)
open
nobody
None
5
2022-03-11
2022-03-11
No

gcc 12 errors out with this:

src/mainwindow.cpp:430:16: error: ordered comparison of pointer with integer zero (‘QAction*’ and ‘int’)
430 | if (act<0) return;

This comparison doesn't really make sense on a pointer, but it makes a lot of sense on the index returned in the previous line, so I think this is a genuine bug. The attached patch fixes it.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.