Waitrud Weber’s blog

things and reminders for memories

3d: WindowsAPI: modification: creation: step works 005 : error: cross

Sorry, we donot remember set R but Center.
Anyway, I might miss but read error messages are still problem beacuse if I don't i cannot see any warnnings.
Actually, too alot.
And, we found cross problem, next disapeared.
We cannnot win that.

deleted next and we could not find that.
Sometimes, we found something errors.

just Link message and Compiled message are different.
They could touch the object files before Link.
And from object files, they could create source files, we doubt.
--- // Q // // // // void vCircle::calculation( vPoint set_up, vPoint right_x ) { vPoint* next = nullptr; vPoint* base_xaxis = nullptr; vPoint* up = nullptr; vPoint* depth = nullptr; vPoint* right = nullptr; vPoint* start = nullptr; vCalculation* calc = nullptr; vPoint* Depth = nullptr; float PI = 3.141592f; float exact_length = this->R*PI; float length = 0.0f; const float c_length = 5.0f; // set memory indxex. this->max_pixel = 5; calc = new vCalculation (); depth = new vPoint(); right = new vPoint(); up = &set_up; base_xaxis = &right_x; calc->cross( up , base_xaxis, depth ); calc->cross( depth , up, right ); calc->normal( up ); calc->normal( right ); calc->normal( depth ); start = new vPoint(); put_memories( start ); // Book memory-administration. calc->scale( depth, this->R, start ); // malloc this->pixels = (vPoint**) malloc( sizeof(vPoint*) * this->max_pixel ); for ( int i=0; imax_pixel; i++ ) { printf("001: i=%d / %d \r\n", i, this->max_pixel ); if ( i >= this->max_pixel ) { //realloc this->pixels = (vPoint**) realloc( this->pixels, sizeof(vPoint*) * this->max_pixel ); this->max_pixel *= 2; } this->pixels[i] = new vPoint(); printf("002: i=%d / %d \r\n", i, this->max_pixel ); // 20191124 debug calc->Print_Point_Memories(); printf("this->Center %p\r\n", this->Center); // calculation of next. Depth = calc->subtract( start, this->Center ); printf("003: i=%d / %d \r\n", i, this->max_pixel ); // 20191124 debug calc->Print_Point_Memories(); calc->cross( Depth, up, next); printf("004: i=%d / %d \r\n", i, this->max_pixel ); calc->normal( next ); next = calc->scalize ( next, c_length ); // specialized. printf("005: i=%d / %d \r\n", i, this->max_pixel ); this->pixels[i] = (vPoint*) next; // finish the next calculation. length += c_length; if ( length > exact_length ) { index_pixel =i; break; } } // flush memories to last indxex. printf( "max_pixel= %d index_pixel=%d \r\n", this->max_pixel, this->index_pixel ); printf(" vCircle::calculation ends\r\n"); } --- WM_MESSG 000: hWnd 526822: uMsg 20: wParam 1812009843: lParam 0: canvas 4350352: btc 4350368: *(p_evt->uMsg) 20: WM_MESSG 003: 20 *(p_evt->uMsg):20 wButtonController::Process: 20 / 15<-WM_PAINT wParam 1812009843 lParam 0 this->event->uMsg:6551900 *(this->event->uMsg)=20 wButtonController::ProcessWmKeyup: Starts:wButtonController::ProcessWmKeyup: Ends:WM_MESSG 004: 20 *(p_evt->uMsg):20 uMsg:20 p_evt->uMsg: 6551900 &uMsg: 6551900 WM_PAINT 002: 15 *(p_evt->uMsg):20 uMsg: 15 WM_MESSG 003: 15 *(p_evt->uMsg):20 wButtonController::Process: 20 / 15<-WM_PAINT wParam 1812009843 lParam 0 this->event->uMsg:6551900 *(this->event->uMsg)=20 wButtonController::WM_PAINT: this->event->main_mode = 2 default: void wButtonController::drawButtons ( HDC hdc ): Starts AryButton 0 = 0 AryButton 1 = 0 AryButton 2 = 1 AryButton 3 = 0 AryButton 4 = 0 AryButton 5 = 0 AryButton 6 = 0 AryButton 7 = 0 AryButton 8 = 0 void wButtonController::drawButtons ( HDC hdc ): Ends wmpaint_display_threeD_proc_002: memorized_CurveLines=1 Allocation of local lines: 0 6 001: i=0 / 5 002: i=0 / 5 i: 0 p: 6FD61940 i: 1 p: 030ED518 i: 2 p: 030ED320 i: 3 p: 030ED4D0 i: 4 p: 030ED368 i: 5 p: 030ED458 i: 6 p: 030ED470 i: 7 p: 030ED560 i: 8 p: 030ED3B0 i: 9 p: 030ED428 i: 10 p: 030ED578 i: 11 p: 030ED2F0 i: 12 p: 030ED308 i: 13 p: 030ED338 i: 14 p: 030ED350 i: 15 p: 030ED3E0 i: 16 p: 030ED5C0 this->Center 030ED590 003: i=0 / 5 i: 0 p: 6FD61940 i: 1 p: 030ED518 i: 2 p: 030ED320 i: 3 p: 030ED4D0 i: 4 p: 030ED368 i: 5 p: 030ED458 i: 6 p: 030ED470 i: 7 p: 030ED560 i: 8 p: 030ED3B0 i: 9 p: 030ED428 i: 10 p: 030ED578 i: 11 p: 030ED2F0 i: 12 p: 030ED308 i: 13 p: 030ED338 i: 14 p: 030ED350 i: 15 p: 030ED3E0 i: 16 p: 030ED5C0 i: 17 p: 030ED5C0 --- > c:\aaa\bin\make.exe all mingw32-g++ -Wall -O3 -I C:\MinGW\include\ -L C:\MinGW\lib -lgdi32 -lws2_32 -lwsock32 -mwindows -o display_threeD.o -c display_threeD.cpp display_threeD.cpp: In function 'int curve_initialization()': display_threeD.cpp:136:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ display_threeD.cpp: In function 'int display_threeD_initialize()': display_threeD.cpp:319:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[0]->c1 = (char *) copyof( "x1" ); ^ display_threeD.cpp:320:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[0]->c2 = (char *) copyof( "x2" ); ^ display_threeD.cpp:321:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[1]->c1 = (char *) copyof( "y1" ); ^ display_threeD.cpp:322:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[1]->c2 = (char *) copyof( "y2" ); ^ display_threeD.cpp:323:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[2]->c1 = (char *) copyof( "z1" ); ^ display_threeD.cpp:324:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[2]->c2 = (char *) copyof( "z2" ); ^ display_threeD.cpp:326:17: warning: variable 'intersection' set but not used [-Wunused-but-set-variable] vIntersection* intersection = nullptr; ^~~~~~~~~~~~ display_threeD.cpp: In function 'int get_cooordinate_on_screen(vPoint, float*, float*)': display_threeD.cpp:395:6: warning: unused variable 'result' [-Wunused-variable] int result = screen->OntheScreen( point_intersection, lx, ly ); ^~~~~~ display_threeD.cpp: In function 'int calculation_pathes()': display_threeD.cpp:525:8: warning: variable 't' set but not used [-Wunused-but-set-variable] float t = 0.0f; ^ display_threeD.cpp:526:10: warning: unused variable 'c1' [-Wunused-variable] vPoint* c1 = new vPoint ( 0.0f, 0.0f, 0.0f ); ^~ display_threeD.cpp:527:10: warning: unused variable 'c2' [-Wunused-variable] vPoint* c2 = new vPoint ( 0.0f, 0.0f, 0.0f ); ^~ display_threeD.cpp: In function 'int wmpaint_display_patches(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:553:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ display_threeD.cpp: In function 'int bDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:664:17: warning: unused variable 'l_lines' [-Wunused-variable] static vLine** l_lines = nullptr; ^~~~~~~ display_threeD.cpp:665:13: warning: unused variable 'line_num' [-Wunused-variable] static int line_num = 0; ^~~~~~~~ display_threeD.cpp: In function 'int DisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:809:11: warning: unused variable 'allocation_line' [-Wunused-variable] vLine* allocation_line = (vLine*) malloc ( sizeof(vLine) * 1 ); ^~~~~~~~~~~~~~~ display_threeD.cpp:796:14: warning: unused variable 'num_str' [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp: In function 'int NormalFaces_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:845:14: warning: unused variable 'num_str' [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp: In function 'void create_lines(vPointLinear*, vLine**, int)': display_threeD.cpp:873:13: warning: variable 'line_num' set but not used [-Wunused-but-set-variable] static int line_num = 0; ^~~~~~~~ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:928:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'vLine*' [-Wformat=] printf("vLine:%d %d\r\n", i, l_lines[i] ); ^ display_threeD.cpp:931:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'vLine*' [-Wformat=] printf("vLine allocation:%d %d\r\n", i, l ); ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc_org(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:967:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 0 ]->c1 = copyof("A0"); ^ display_threeD.cpp:975:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ i ]->c1 = copyof( m_concat( copyof("A"), itoa( i, num_str, 10 ) ) ); ^ display_threeD.cpp:981:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 5 ]->c1 = copyof("A6"); ^ display_threeD.cpp: In function 'int create_CurveLines(vLine**, int)': display_threeD.cpp:1012:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 0 ]->c1 = copyof("A0"); ^ display_threeD.cpp:1023:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ i ]->c1 = copyof( m_concat( copyof("A"), itoa( i, num_str, 10 ) ) ); ^ display_threeD.cpp:1029:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ line_num - 1 ]->c1 = copyof("A6"); ^ display_threeD.cpp: In function 'int F011_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:1042:8: warning: unused variable 'lx' [-Wunused-variable] float lx, ly; ^~ display_threeD.cpp:1042:12: warning: unused variable 'ly' [-Wunused-variable] float lx, ly; ^~ display_threeD.cpp:1044:8: warning: unused variable 'points' [-Wunused-variable] POINT points[3]; ^~~~~~ display_threeD.cpp:1045:15: warning: unused variable 'l_calc' [-Wunused-variable] vCalculation l_calc; ^~~~~~ display_threeD.cpp: In function 'vLine* to_screen(vLine**, int)': display_threeD.cpp:1156:11: warning: unused variable 'p2' [-Wunused-variable] vPoint* p2 = l1->p2; ^~ display_threeD.cpp:1158:11: warning: unused variable 'd2_p1' [-Wunused-variable] vPoint* d2_p1 = l2->p1; ^~~~~ display_threeD.cpp:1159:11: warning: unused variable 'd2_p2' [-Wunused-variable] vPoint* d2_p2 = l2->p2; ^~~~~ display_threeD.cpp:1126:6: warning: unused variable 'b' [-Wunused-variable] int b[3]; ^ display_threeD.cpp:1127:8: warning: unused variable 'l' [-Wunused-variable] vLine l[3]; ^ display_threeD.cpp: In function 'int count_screen(char*)': display_threeD.cpp:1191:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for( int i=0; i=256*256; i++ ) { ^~~ display_threeD.cpp: In function 'int display_threeD_screen_initialize()': display_threeD.cpp:176:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int display_threeD_screen_initialize_002()': display_threeD.cpp:216:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int waitfor_wmpaint_display_threeD_proc()': display_threeD.cpp:609:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int aDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:655:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int bDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:676:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int dDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:740:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int cDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:787:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int NormalFaces_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:865:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:943:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc_org(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:987:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: At global scope: display_threeD.cpp:845:14: warning: 'num_str' defined but not used [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp:796:14: warning: 'num_str' defined but not used [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp:665:13: warning: 'line_num' defined but not used [-Wunused-variable] static int line_num = 0; ^~~~~~~~ display_threeD.cpp:664:17: warning: 'l_lines' defined but not used [-Wunused-variable] static vLine** l_lines = nullptr; ^~~~~~~ display_threeD.cpp: In function 'int display_threeD_initialize()': display_threeD.cpp:318:26: warning: 'p_cc' may be used uninitialized in this function [-Wmaybe-uninitialized] lines_patches_2D[0]->c1 = (char *) p_cc; ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ mingw32-g++ -Wall -O3 -I C:\MinGW\include\ -L C:\MinGW\lib -lgdi32 -lws2_32 -lwsock32 -mwindows -o vCircle.o -c vCircle.cpp vCircle.cpp:12:6: error: prototype for 'void vCircle::set_center(float)' does not match any in class 'vCircle' void vCircle::set_center( float r ) { ^~~~~~~ In file included from vCircle.cpp:9:0: vCircle.h:17:7: error: candidate is: void vCircle::set_center(vPoint*) void set_center( vPoint* set_c ); ^~~~~~~~~~ make: *** [Makefile:22: vCircle.o] Error 1 --- c:\aaa\bin\make.exe all mingw32-g++ -Wall -O3 -I C:\MinGW\include\ -L C:\MinGW\lib -lgdi32 -lws2_32 -lwsock32 -mwindows -o display_threeD.o -c display_threeD.cpp display_threeD.cpp: In function 'int curve_initialization()': display_threeD.cpp:136:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ display_threeD.cpp: In function 'int display_threeD_initialize()': display_threeD.cpp:319:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[0]->c1 = (char *) copyof( "x1" ); ^ display_threeD.cpp:320:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[0]->c2 = (char *) copyof( "x2" ); ^ display_threeD.cpp:321:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[1]->c1 = (char *) copyof( "y1" ); ^ display_threeD.cpp:322:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[1]->c2 = (char *) copyof( "y2" ); ^ display_threeD.cpp:323:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[2]->c1 = (char *) copyof( "z1" ); ^ display_threeD.cpp:324:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lines_patches_2D[2]->c2 = (char *) copyof( "z2" ); ^ display_threeD.cpp:326:17: warning: variable 'intersection' set but not used [-Wunused-but-set-variable] vIntersection* intersection = nullptr; ^~~~~~~~~~~~ display_threeD.cpp: In function 'int get_cooordinate_on_screen(vPoint, float*, float*)': display_threeD.cpp:395:6: warning: unused variable 'result' [-Wunused-variable] int result = screen->OntheScreen( point_intersection, lx, ly ); ^~~~~~ display_threeD.cpp: In function 'int calculation_pathes()': display_threeD.cpp:525:8: warning: variable 't' set but not used [-Wunused-but-set-variable] float t = 0.0f; ^ display_threeD.cpp:526:10: warning: unused variable 'c1' [-Wunused-variable] vPoint* c1 = new vPoint ( 0.0f, 0.0f, 0.0f ); ^~ display_threeD.cpp:527:10: warning: unused variable 'c2' [-Wunused-variable] vPoint* c2 = new vPoint ( 0.0f, 0.0f, 0.0f ); ^~ display_threeD.cpp: In function 'int wmpaint_display_patches(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:553:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ display_threeD.cpp: In function 'int bDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:664:17: warning: unused variable 'l_lines' [-Wunused-variable] static vLine** l_lines = nullptr; ^~~~~~~ display_threeD.cpp:665:13: warning: unused variable 'line_num' [-Wunused-variable] static int line_num = 0; ^~~~~~~~ display_threeD.cpp: In function 'int dDisplayControls_wmpaint_display_threeD_proc_002(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:696:22: error: no matching function for call to 'vCircle::set_center()' vcircle->set_center(); ^ In file included from display_threeD.cpp:21:0: vCircle.h:17:7: note: candidate: void vCircle::set_center(vPoint*) void set_center( vPoint* set_c ); ^~~~~~~~~~ vCircle.h:17:7: note: candidate expects 1 argument, 0 provided display_threeD.cpp: In function 'int DisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:810:11: warning: unused variable 'allocation_line' [-Wunused-variable] vLine* allocation_line = (vLine*) malloc ( sizeof(vLine) * 1 ); ^~~~~~~~~~~~~~~ display_threeD.cpp:797:14: warning: unused variable 'num_str' [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp: In function 'int NormalFaces_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:846:14: warning: unused variable 'num_str' [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:929:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'vLine*' [-Wformat=] printf("vLine:%d %d\r\n", i, l_lines[i] ); ^ display_threeD.cpp:932:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'vLine*' [-Wformat=] printf("vLine allocation:%d %d\r\n", i, l ); ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc_org(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:968:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 0 ]->c1 = copyof("A0"); ^ display_threeD.cpp:976:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ i ]->c1 = copyof( m_concat( copyof("A"), itoa( i, num_str, 10 ) ) ); ^ display_threeD.cpp:982:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 5 ]->c1 = copyof("A6"); ^ display_threeD.cpp: In function 'int create_CurveLines(vLine**, int)': display_threeD.cpp:1013:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ 0 ]->c1 = copyof("A0"); ^ display_threeD.cpp:1024:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ i ]->c1 = copyof( m_concat( copyof("A"), itoa( i, num_str, 10 ) ) ); ^ display_threeD.cpp:1030:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] l_lines[ line_num - 1 ]->c1 = copyof("A6"); ^ display_threeD.cpp: In function 'int F011_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:1043:8: warning: unused variable 'lx' [-Wunused-variable] float lx, ly; ^~ display_threeD.cpp:1043:12: warning: unused variable 'ly' [-Wunused-variable] float lx, ly; ^~ display_threeD.cpp:1045:8: warning: unused variable 'points' [-Wunused-variable] POINT points[3]; ^~~~~~ display_threeD.cpp:1046:15: warning: unused variable 'l_calc' [-Wunused-variable] vCalculation l_calc; ^~~~~~ display_threeD.cpp: In function 'vLine* to_screen(vLine**, int)': display_threeD.cpp:1157:11: warning: unused variable 'p2' [-Wunused-variable] vPoint* p2 = l1->p2; ^~ display_threeD.cpp:1159:11: warning: unused variable 'd2_p1' [-Wunused-variable] vPoint* d2_p1 = l2->p1; ^~~~~ display_threeD.cpp:1160:11: warning: unused variable 'd2_p2' [-Wunused-variable] vPoint* d2_p2 = l2->p2; ^~~~~ display_threeD.cpp:1127:6: warning: unused variable 'b' [-Wunused-variable] int b[3]; ^ display_threeD.cpp:1128:8: warning: unused variable 'l' [-Wunused-variable] vLine l[3]; ^ display_threeD.cpp: In function 'int count_screen(char*)': display_threeD.cpp:1192:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for( int i=0; i=256*256; i++ ) { ^~~ display_threeD.cpp: In function 'int display_threeD_screen_initialize()': display_threeD.cpp:176:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int display_threeD_screen_initialize_002()': display_threeD.cpp:216:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int waitfor_wmpaint_display_threeD_proc()': display_threeD.cpp:609:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int aDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:655:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int bDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:676:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int dDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:741:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int cDisplayControls_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:788:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int NormalFaces_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:866:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:944:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: In function 'int CurveLines_wmpaint_display_threeD_proc_org(HWND, HDC, PAINTSTRUCT*, UINT, WPARAM, LPARAM)': display_threeD.cpp:988:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ display_threeD.cpp: At global scope: display_threeD.cpp:846:14: warning: 'num_str' defined but not used [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp:797:14: warning: 'num_str' defined but not used [-Wunused-variable] static char num_str[2048]; ^~~~~~~ display_threeD.cpp:665:13: warning: 'line_num' defined but not used [-Wunused-variable] static int line_num = 0; ^~~~~~~~ display_threeD.cpp:664:17: warning: 'l_lines' defined but not used [-Wunused-variable] static vLine** l_lines = nullptr; ^~~~~~~ make: *** [Makefile:22: display_threeD.o] Error 1 ---