From 963a390bea8f52c1aadbebc4e9c7851642fdc06e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 13 Nov 2008 21:48:51 +0000 Subject: Fix warnings. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4155 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/mackie/mackie_control_protocol.cc | 2 +- libs/surfaces/mackie/mackie_control_protocol_poll.cc | 2 +- libs/surfaces/mackie/mackie_port.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index 39a1438f35..de6623c4d2 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.cc +++ b/libs/surfaces/mackie/mackie_control_protocol.cc @@ -1132,7 +1132,7 @@ string MackieControlProtocol::format_bbt_timecode( nframes_t now_frame ) // figure out subdivisions per beat const Meter & meter = session->tempo_map().meter_at( now_frame ); int subdiv = 2; - if ( meter.note_divisor() == 8 && meter.beats_per_bar() == 12.0 || meter.beats_per_bar() == 9.0 || meter.beats_per_bar() == 6.0 ) + if ( meter.note_divisor() == 8 && (meter.beats_per_bar() == 12.0 || meter.beats_per_bar() == 9.0 || meter.beats_per_bar() == 6.0) ) { subdiv = 3; } diff --git a/libs/surfaces/mackie/mackie_control_protocol_poll.cc b/libs/surfaces/mackie/mackie_control_protocol_poll.cc index 1b087222cd..88c00ed6eb 100644 --- a/libs/surfaces/mackie/mackie_control_protocol_poll.cc +++ b/libs/surfaces/mackie/mackie_control_protocol_poll.cc @@ -135,7 +135,7 @@ void MackieControlProtocol::read_ports() // this will cause handle_midi_any in the MackiePort to be triggered // for alsa/raw ports // alsa/sequencer ports trigger the midi parser off poll - if ( pfd[p].revents & POLLIN > 0 ) + if ( (pfd[p].revents & POLLIN) > 0 ) { // avoid deadlocking? // doesn't seem to make a difference diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc index d9ced05da3..d767c4c745 100644 --- a/libs/surfaces/mackie/mackie_port.cc +++ b/libs/surfaces/mackie/mackie_port.cc @@ -139,7 +139,7 @@ MidiByteArray calculate_challenge_response( MidiByteArray::iterator begin, MidiB // from the Logic docs. retval << ( 0x7f & ( l[0] + ( l[1] ^ 0xa ) - l[3] ) ); retval << ( 0x7f & ( ( l[2] >> l[3] ) ^ ( l[0] + l[3] ) ) ); - retval << ( 0x7f & ( l[3] - ( l[2] << 2 ) ^ ( l[0] | l[1] ) ) ); + retval << ( 0x7f & ( (l[3] - ( l[2] << 2 )) ^ ( l[0] | l[1] ) ) ); retval << ( 0x7f & ( l[1] - l[2] + ( 0xf0 ^ ( l[3] << 4 ) ) ) ); return retval; -- cgit v1.2.3