MountTable.hpp:80: "&" when "&&" may be intended ?

Bug #1989122 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

gcc compiler can be made to say:

src/main/../Model/MountTable.hpp:80:41: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]

Source code is

        return this->fileSystem == "aufs" | this->fileSystem == "overlayfs";

Maybe better code:

        return this->fileSystem == "aufs" || this->fileSystem == "overlayfs";

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.