ci sono ancora alcuni warning
codice:
sergio@casa:~/tmp$ g++ prova.cpp
prova.cpp: In function ‘int main()’:
prova.cpp:235: warning: format ‘%f’ expects type ‘float*’, but argument 2 has type ‘double*’
prova.cpp:235: warning: format ‘%f’ expects type ‘float*’, but argument 3 has type ‘double*’
prova.cpp:236: warning: format ‘%f’ expects type ‘float*’, but argument 2 has type ‘double*’
prova.cpp:237: warning: format ‘%f’ expects type ‘float*’, but argument 2 has type ‘double*’
sergio@casa:~/tmp$
prova ad eliminarli, per esempio facendo
codice:
float temp_vertex_X, temp_vertex_Y, temp_base, temp_height;
temp_vertex_X=temp_vertex_Y=temp_base=temp_height=0.0;