pulkomandy / Sawteeth

A sound synthetizer, tracker and replayer, similar to AHX.
22 stars 7 forks source link

Does not compile due to if.. else identation errors #44

Closed n0toose closed 4 years ago

n0toose commented 4 years ago

Here's the error log:

~/Sawteeth> cmake .
~/Sawteeth> make | nc termbin.com 9999
/boot/home/Sawteeth/Source/stAiffWindow.cpp: In member function 'void stAiffWindow::Thread()':
/boot/home/Sawteeth/Source/stAiffWindow.cpp:116:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (sbuf[c] > max) max = sbuf[c];if (sbuf[c] < min) min = sbuf[c];
    ^~
/boot/home/Sawteeth/Source/stAiffWindow.cpp:116:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    if (sbuf[c] > max) max = sbuf[c];if (sbuf[c] < min) min = sbuf[c];
                                     ^~
cc1plus: all warnings being treated as errors
make[2]: *** [Source/CMakeFiles/Sawteeth.dir/stAiffWindow.cpp.o] Error 1
make[1]: *** [Source/CMakeFiles/Sawteeth.dir/all] Error 2
make: *** [all] Error 2