Using any of the compile optimizations results in numerous unreachable code warnings that are not issued when no optimization is used. Version 9.00.9 on Windows 10
The program uses Single-threaded, _stdcall, fast FP model, Level 2 warnings, and C11 with Microsoft extensions. WIN32 and Unicode.
Standard Compile has no errors or warnings.
Most but not all are on WM_CLOSE
An example of the many warnings:
C:\Program Files\PellesC\Files\vCardz\vCardz\about.c(151): warning #2154: Unreachable code.
code:
case WM_CLOSE:
warning ->> if(hIcon) DestroyIcon(hIcon);
DeleteObject(hFont);
EndDialog(hwndDlg, 0);
break;
An example not on WM_CLOSE - two warnings same line
C:\Program Files\PellesC\Files\vCardz\vCardz\file.c(1713): warning #2154: Unreachable code.
C:\Program Files\PellesC\Files\vCardz\vCardz\file.c(1713): warning #2154: Unreachable code.
if (SaveAs == FALSE)
warning ->> { goodfile= GetOpenFileNameW(&ofn);}
else
{ goodfile= GetSaveFileNameW(&ofn);}
Is there something I'm doing wrong? My program is pretty straightforward and relatively
unsophisticated. The resulting program seems to run ok, but I'd be nervous about releasing
it.....
Thanks in advance,
John