Paul S. Person
2014-12-29 01:05:28 UTC
This was discovered because I, for whatever reason, have been
compiling default windowing during the build on my Windows 7 computer.
Since that computer was used for the build only because my former XP
machine wasn't up to it, and since my new Win 8.1 machine most
definitely is, I am planning to remove OW from the Windows 7 computer.
It is, after all, a Netbook, and was never intended for such duties.
The problem manifests itself in bld\clib\defwin\library\os2.386\mf_r,
and produces this warning message:
..\..\..\c\pmdlg2.c(258): Warning! W102: Type mismatch (warning)
..\..\..\c\pmdlg2.c(258): Note! I2003: source conversion type is 'void
*'
..\..\..\c\pmdlg2.c(258): Note! I2004: target conversion type is
'unsigned long '
the build then halts.
wmake produces the same result -- in mf_r and mf_s. In mf_rd, however,
wmake continues, despite the warning, and shows several other
instances of the same warning in the subsequently-compiled files.
The file pmdlg2.c line 258 is
DISPLAY("Window Creation Error Occurred");
and this is found at the top of the file:
#define DISPLAY(x) WinMessageBox( HWND_DESKTOP, NULL, x, "Error",
0, MB_APPLMODAL | MB_NOICON | MB_OK | MB_MOVEABLE );
Since this is in the os2.386 directory, the WinMessageBox() involved
would be the 32-bit version:
ULONG APIENTRY WinMessageBox(HWND,HWND,PCSZ,PCSZ,ULONG,ULONG);
found in %WATCOM%\h\os2\pmwin.h:
I have, of course, no idea what is going on, but am reporting it in
case anyone cares. Note that the os2.286 directories are traversed
before this one is reached.
There appear to be two issues:
1) How is x, which I would think would be the "void *", being mapped
to an unsigned long?
Note that "Error", like x, is mapped to a PCSZ, not a ULONG. Or are
the flags at the end being treated as a "void *" for some reason?
2) Why does wmake stop after the warning in pmdlg2.c in mf_r and mf_s,
but not in mf_rd?
I have no idea how long this has been going on; apparently, when I
thought I was setting my myvars.bat to build the documents, I instead
set it to build the default windowing.
compiling default windowing during the build on my Windows 7 computer.
Since that computer was used for the build only because my former XP
machine wasn't up to it, and since my new Win 8.1 machine most
definitely is, I am planning to remove OW from the Windows 7 computer.
It is, after all, a Netbook, and was never intended for such duties.
The problem manifests itself in bld\clib\defwin\library\os2.386\mf_r,
and produces this warning message:
..\..\..\c\pmdlg2.c(258): Warning! W102: Type mismatch (warning)
..\..\..\c\pmdlg2.c(258): Note! I2003: source conversion type is 'void
*'
..\..\..\c\pmdlg2.c(258): Note! I2004: target conversion type is
'unsigned long '
the build then halts.
wmake produces the same result -- in mf_r and mf_s. In mf_rd, however,
wmake continues, despite the warning, and shows several other
instances of the same warning in the subsequently-compiled files.
The file pmdlg2.c line 258 is
DISPLAY("Window Creation Error Occurred");
and this is found at the top of the file:
#define DISPLAY(x) WinMessageBox( HWND_DESKTOP, NULL, x, "Error",
0, MB_APPLMODAL | MB_NOICON | MB_OK | MB_MOVEABLE );
Since this is in the os2.386 directory, the WinMessageBox() involved
would be the 32-bit version:
ULONG APIENTRY WinMessageBox(HWND,HWND,PCSZ,PCSZ,ULONG,ULONG);
found in %WATCOM%\h\os2\pmwin.h:
I have, of course, no idea what is going on, but am reporting it in
case anyone cares. Note that the os2.286 directories are traversed
before this one is reached.
There appear to be two issues:
1) How is x, which I would think would be the "void *", being mapped
to an unsigned long?
Note that "Error", like x, is mapped to a PCSZ, not a ULONG. Or are
the flags at the end being treated as a "void *" for some reason?
2) Why does wmake stop after the warning in pmdlg2.c in mf_r and mf_s,
but not in mf_rd?
I have no idea how long this has been going on; apparently, when I
thought I was setting my myvars.bat to build the documents, I instead
set it to build the default windowing.
--
"Nature must be explained in
her own terms through
the experience of our senses."
"Nature must be explained in
her own terms through
the experience of our senses."