[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

2391.0. "Strange warnings?" by TAEC::SILVA (Carl Silva - Telecom Eng - DTN 828-5339) Fri Feb 21 1992 10:42

	Does anyone know why I should get the following warnings:

ccom: Warning: pnmp_db_api.c, line 1624: argument type doesn't match prototype
description
                                                        &field_value[0]);
      -----------------------------------------------------------------^
ccom: Warning: pnmp_db_api.c, line 2945: illegal pointer combination
                                                       first_field->mcc_a_link;
     -------------------------------------------------------------------------^

	Carl
T.RTitleUserPersonal
Name
DateLines
2391.1Your types don't matchTOOK::MINTZErik Mintz, DECmcc Development, dtn 226-5033Fri Feb 21 1992 10:517
The warning means that there is a functional prototype declared for
the routine you are calling, and the arguments you are passing in do
not match the type of the arguments in the prototype.

Without knowing what you are calling, it is hard to provide more information.

-- Erik
2391.2Whoops...TAEC::SILVACarl Silva - Telecom Eng - DTN 828-5339Fri Feb 21 1992 10:585
	I'm sorry, I get these every time I call sprintf such as :

	sprintf (&out_buf[0], "x = %s", &field_buf[0]);

	Carl
2391.3style vs structure...TOOK::MINTZErik Mintz, DECmcc Development, dtn 226-5033Fri Feb 21 1992 11:0712
CMA has defined a functional prototype for sprintf, in cma_stdio.h:

cma_sprintf _CMA_PROTOTYPE_ ((
        char    *s,
        char    *format,
        ...));
 

I would suggest trying out_buf rather than &out_buf[0], and see if that helps.

-- Erik

2391.4Yah but...TAEC::SILVACarl Silva - Telecom Eng - DTN 828-5339Fri Feb 21 1992 12:0812
	RE: .3,

	Thanks, that worked for some.  But I still get it if I use the last
field to be something like:

	sprintf (out_buf, "%s", field_buf);

	Where char out_buf[10] and char field_buf[5];

	Thanks for the help!

	Carl