Mailing List Archive

[MythTV/mythtv] deed27: Add parentheses to clarify validity test in libdvd...
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: deed27c1d70c3602f2172c6be8d79874cc606742
https://github.com/MythTV/mythtv/commit/deed27c1d70c3602f2172c6be8d79874cc606742
Author: David Hampton <mythtv@love2code.net>
Date: 2023-07-06 (Thu, 06 Jul 2023)

Changed paths:
M mythtv/external/libmythdvdnav/dvdnav/vm/vmget.c

Log Message:
-----------
Add parentheses to clarify validity test in libdvdnav.

The compiler is issuing this set of warning:

vmget.c:196:8: warning: logical not is only applied to the left
hand side of this bitwise operator [-Wlogical-not-parentheses]

note: add parentheses after the '!' to evaluate the bitwise
operator first

note: add parentheses around left hand side expression to silence
this warning

This code looks like it is trying to test whether a single bit in an
integer is set, so wrap the entire expression in parentheses.

Note: The original libdvdnav sources were checked for their solution
to this error, but this function has never existed there. Its a
MythTV addition.


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits