Microsoft KB Archive/69454

PRSQL9012039: dbgetmaxprocs & dbsetmaxprocs Not Prototyped ID Number: Q69454

1.10 OS/2 buglist1.10 fixlist1.14

Summary:

PROBLEM ID: PRSQL9012039

SYMPTOMS When compiling a DB-LIBRARY program that uses either dbsetmaxprocs or dbgetmaxprocs, the following warning messages are received:

warning C4016: ‘dbgetmaxprocs’ : no function return type, using int as default warning C4071: ‘dbgetmaxprocs’ : no function prototype given

CAUSE The include files for DB-LIBRARY do not include the prototype for these functions.

RESOLUTION To link without these warning messages, put the following prototypes in the source code:

RETCODE dbsetmaxprocs(int); int dbgetmaxprocs(void); The include files for DB-LIBRARY (dblib) have been modified to include these function prototypes in dblib version 1.14 that is available from Microsoft Product Support Services. For more information, contact your primary support provider.