[haiku-development] src_build_libbe_storage_Volume.cpp.diff
- From: kaoutsis <kaoutsis@xxxxxx>
- To: haiku-development <haiku-development@xxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 01:50:28 +0300
Hi there,
Tried to fix this warning:
src/build/libbe/storage/Volume.cpp: In member function ‘bool
BVolume::operator==(const BVolume&) const’:
src/build/libbe/storage/Volume.cpp:180: warning: suggest parentheses
around && within ||
good bye,
Vasilis
Index: src/build/libbe/storage/Volume.cpp
===================================================================
--- src/build/libbe/storage/Volume.cpp (revision 25715)
+++ src/build/libbe/storage/Volume.cpp (working copy)
@@ -176,8 +176,8 @@
bool
BVolume::operator==(const BVolume &volume) const
{
- return (InitCheck() != B_OK && volume.InitCheck() != B_OK
- || fDevice == volume.fDevice);
+ return (InitCheck() != B_OK && volume.InitCheck() != B_OK)
+ || (fDevice == volume.fDevice);
}
// !=
- Follow-Ups:
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Michael Pfeiffer
Other related posts:
- » [haiku-development] src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] src_build_libbe_storage_Volume.cpp.diff
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Michael Pfeiffer