Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
reg.: 'fretBackground': local variable is initialized but not referenced (C4189)
  • Loading branch information
Jojo-Schmitz committed Jul 24, 2024
1 parent 4d52ee8 commit 3e9a4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/rendering/dev/chordlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ void ChordLayout::layoutChords1(LayoutContext& ctx, Segment* segment, staff_idx_
int upVoices = 0;
int downVoices = 0;
// Fret width plus white background box for TAB
const double fretBackground = ctx.conf().styleS(Sid::tabFretPadding).val() * staff->spatium(tick);
//const double fretBackground = ctx.conf().styleS(Sid::tabFretPadding).val() * staff->spatium(tick);
// double nominalWidth = !isTab ? ctx.conf().noteHeadWidth() * staff->staffMag(tick)
// : (ctx.conf().fretWidth(staffType) + 2 * fretBackground) * staff->staffMag(tick);
double nominalWidth = ctx.conf().noteHeadWidth() * staff->staffMag(tick);
Expand Down

0 comments on commit 3e9a4f3

Please sign in to comment.