I'm getting this:
g++ src/NanoVG.cpp -Wall -Wextra -pipe -MD -MP -fPIC -DPIC -DNDEBUG -O2 -mtune=generic -msse -msse2 -fdata-sections -ffunction-sections -fvisibility=hidden -std=c++11 -fvisibility-inlines-hidden -I/usr/include/libdrm -I. -Isrc -c -o src/NanoVG.cpp.o
In file included from src/nanovg/nanovg.c:25:0,
from src/NanoVG.cpp:976:
src/nanovg/stb_image.h: In function ‘unsigned char* stbi__convert_format(unsigned char_, int, int, unsigned int, unsigned int)’:
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:877:10: note: in expansion of macro ‘CASE’
CASE(1,2) dest[0]=src[0], dest[1]=255; break;
^~~~
src/nanovg/stb_image.h:877:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(1,2) dest[0]=src[0], dest[1]=255; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:878:10: note: in expansion of macro ‘CASE’
CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
^~~~
src/nanovg/stb_image.h:878:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:879:10: note: in expansion of macro ‘CASE’
CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
^~~~
src/nanovg/stb_image.h:879:65: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:880:10: note: in expansion of macro ‘CASE’
CASE(2,1) dest[0]=src[0]; break;
^~~~
src/nanovg/stb_image.h:880:36: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(2,1) dest[0]=src[0]; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:881:10: note: in expansion of macro ‘CASE’
CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
^~~~
src/nanovg/stb_image.h:881:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:882:10: note: in expansion of macro ‘CASE’
CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
^~~~
src/nanovg/stb_image.h:882:68: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:883:10: note: in expansion of macro ‘CASE’
CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
^~~~
src/nanovg/stb_image.h:883:78: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:884:10: note: in expansion of macro ‘CASE’
CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
^~~~
src/nanovg/stb_image.h:884:67: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:885:10: note: in expansion of macro ‘CASE’
CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
^~~~
src/nanovg/stb_image.h:885:82: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:886:10: note: in expansion of macro ‘CASE’
CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
^~~~
src/nanovg/stb_image.h:886:67: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:887:10: note: in expansion of macro ‘CASE’
CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
^~~~
src/nanovg/stb_image.h:887:85: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
SE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
^~~~~
src/nanovg/stb_image.h:873:44: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
#define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
^
src/nanovg/stb_image.h:888:10: note: in expansion of macro ‘CASE’
CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
^~~~
src/nanovg/stb_image.h:888:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
^~~~~
src/nanovg/stb_image.h: In function ‘int stbi__extend_receive(stbi__jpeg_, int)’:
src/nanovg/stb_image.h:1156:21: warning: left shift of negative value [-Wshift-negative-value]
return (-1 << n) + k + 1;
^
In file included from src/nanovg/nanovg.c:25:0,
from src/NanoVG.cpp:976:
src/nanovg/stb_image.h: In function ‘int stbi__create_png_image_raw(stbi__png_, stbi_uc_, stbi__uint32, int, stbi__uint32, stbi__uint32)’:
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2506:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_none) cur[k] = raw[k]; break;
^~~~
src/nanovg/stb_image.h:2506:57: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(STBI__F_none) cur[k] = raw[k]; break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2507:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-img_n]); break;
^~~~
src/nanovg/stb_image.h:2507:88: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
SE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-img_n]); break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2508:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
^~~~
src/nanovg/stb_image.h:2508:84: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2509:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_avg) cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-img_n])>>1)); break;
^~~~
src/nanovg/stb_image.h:2509:106: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-img_n])>>1)); break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2510:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_paeth) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-img_n],prior[k],prior[k-img_n])); break;
^~~~
src/nanovg/stb_image.h:2510:125: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
I__BYTECAST(raw[k] + stbi__paeth(cur[k-img_n],prior[k],prior[k-img_n])); break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2511:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-img_n] >> 1)); break;
^~~~
src/nanovg/stb_image.h:2511:95: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-img_n] >> 1)); break;
^~~~~
src/nanovg/stb_image.h:2504:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2512:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-img_n],0,0)); break;
^~~~
src/nanovg/stb_image.h:2512:105: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-img_n],0,0)); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2522:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_none) cur[k] = raw[k]; break;
^~~~
src/nanovg/stb_image.h:2522:57: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(STBI__F_none) cur[k] = raw[k]; break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2523:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
^~~~
src/nanovg/stb_image.h:2523:88: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
SE(STBI__F_sub) cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2524:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
^~~~
src/nanovg/stb_image.h:2524:84: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
CASE(STBI__F_up) cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2525:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_avg) cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
^~~~
src/nanovg/stb_image.h:2525:106: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2526:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_paeth) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
^~~~
src/nanovg/stb_image.h:2526:125: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
I__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2527:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
^~~~
src/nanovg/stb_image.h:2527:95: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
__F_avg_first) cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
^~~~~
src/nanovg/stb_image.h:2520:20: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (k=0; k < img_n; ++k)
^
src/nanovg/stb_image.h:2528:13: note: in expansion of macro ‘CASE’
CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
^~~~
src/nanovg/stb_image.h:2528:105: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
^~~~~
And it ends with this:
Generate ttl data for './ftz_nes_pulse_dsp.so', basename: 'ftz_nes_pulse_dsp'
/home/fatony/Stuff/C++/fTzNESSynth/dpf/utils/generate-ttl.sh: line 28: 16915 Segmentation fault $GEN ./$FILE
Makefile:24: recipe for target 'gen' failed