Skip to content

Commit

Permalink
Fix a chatty warning from VCDiffHeaderParser
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrmann committed Jan 29, 2018
1 parent 0e79c7e commit b7ccb01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ public DeltaWindowHeader parseWinIndicatorAndSourceSegment(
return null;
}

int unrecognized_flags = win_indicator & 0xff & ~(VCD_SOURCE | VCD_TARGET);
// VCD_CHECKSUM is a Google open-vcdiff extension
int unrecognized_flags = win_indicator & 0xff & ~(VCD_SOURCE | VCD_TARGET | VCD_CHECKSUM);
if (unrecognized_flags != 0) {
LOGGER.warn(String.format("Unrecognized win_indicator flags: 0x%02x", unrecognized_flags));
}
Expand Down

0 comments on commit b7ccb01

Please sign in to comment.