Skip to content

Commit

Permalink
Resolve GCC error
Browse files Browse the repository at this point in the history
This commit withouc cpp change should *fail* CI since it activates the warning
in question

So then correct the build error which Release exposes on gcc8

Closes surge-synthesizer#4748
  • Loading branch information
baconpaul committed Jul 14, 2021
1 parent 57bb23d commit e4472d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jobs:
imageName: 'ubuntu-20.04'
isLinux: True
needsLV2: True
cmakeArguments: "-DCMAKE_BUILD_TYPE=Debug -DJUCE_SUPPORTS_LV2=True -DSURGE_ALTERNATE_JUCE=libs/JUCE-lv2"
cmakeConfig: "Debug"
cmakeArguments: "-DCMAKE_BUILD_TYPE=Release -DJUCE_SUPPORTS_LV2=True -DSURGE_ALTERNATE_JUCE=libs/JUCE-lv2"
cmakeConfig: "Release"
cmakeTarget: "surge-xt_LV2"

pool:
Expand Down
6 changes: 3 additions & 3 deletions src/gui/SurgeGUIEditorValueCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ void decode_controllerid(char *txt, int id)
switch (type)
{
case 1:
snprintf(txt, TXT_SIZE, "NRPN %i", num);
snprintf(txt, 16, "NRPN %8i", num);
break;
case 2:
snprintf(txt, TXT_SIZE, "RPN %i", num);
snprintf(txt, 16, "RPN %8i", num);
break;
default:
snprintf(txt, TXT_SIZE, "CC %i", num);
snprintf(txt, 16, "CC %8i", num);
break;
};
}
Expand Down

0 comments on commit e4472d2

Please sign in to comment.