1
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 28, 2023, 04:52:27 pm »
Hi
Now I'm moving forward with the C PM Samples from the IBM toolkit (version 4.5).
I started with CLIPBDR.
I have this warnings that I'm not sure how to solve.
Regards
Now I'm moving forward with the C PM Samples from the IBM toolkit (version 4.5).
I started with CLIPBDR.
I have this warnings that I'm not sure how to solve.
Quote
gcc -Wall -Zomf -c -O2 clipbrd.c -o clipbrd.obj
clipbrd.c:160:25: warning: missing braces around initializer [-Wmissing-braces]
160 | DRIVDATA drvdata[] = {44L, 0L, "DISPLAY", 0L};
| ^
| { { }}
clipbrd.c: In function 'PaintRoutine':
clipbrd.c:1042:12: warning: variable 'RC' set but not used [-Wunused-but-set-variable]
1042 | BOOL RC;
| ^~
clipbrd.c: In function 'SetSysMenu':
clipbrd.c:1580:7: warning: case label value exceeds maximum value for type
1580 | case SC_MOVE:
| ^~~~
clipbrd.c:1581:7: warning: case label value exceeds maximum value for type
1581 | case SC_CLOSE:
| ^~~~
Regards