PRSQL9012034: Compile with /W4 Causes Error with SQLFRONT.H

ID Number: Q69021

1.10

OS/2

buglist1.10 fixlist1.14

Summary:

PROBLEM ID: PRSQL9012034

SYMPTOMS

The following error messages are displayed when compiling a program

with warning level 4 with the Microsoft C Compiler version 6.00 (or

later), and the program being complied includes the OS2.H and

SQLFRONT.H header files:

sqlfront.h(44) : warning C4001: nonstandard extension used -

'benign typedef redefinition'

sqlfront.h(46) : warning C4001: nonstandard extension used -

'benign typedef redefinition'

sqlfront.h(293) : warning C4001: nonstandard extension used -

'single line comment'

CAUSE

The first two warnings occur because OS2.H and SQLFRONT.H both

include the typedefs of BYTE and BOOL; however, the two typedefs

are identical. The third warning occurs because SQLFRONT.H uses

double slashes (//) as a single line comment.

RESOLUTION

These warnings can be ignored.

Microsoft has confirmed this to be a problem in DB-LIBRARY (dblib)

versio 1.10. These files have been corrected in dblib version 1.14

available from Microsoft Product Support. For more information,

contact your primary support provider.