This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc function signature


Hello

I compiled a program that you can find here:

http://repo.or.cz/hkl.git

in one of the header file I have this declaration

toto.h
extern int hkl_pseudo_axis_engine_init_func(HklPseudoAxisEngineMode *mode,
				     HklPseudoAxisEngine *self,
				     HklGeometry *geometry,
 				     HklDetector const *detector,
 				     HklSample const *sample)

but in the 
toto.c I had

int (HklPseudoAxisEngine *self,
 				     HklGeometry *geometry,
 				     HklDetector const *detector,
 				     HklSample const *sample)
{
}


and gcc did not complain during the compile time about this is it normal.


In fact I used this hkl_pseudo_axis_engine_init_func in another part of the code but with
the right signature, the one from the toto.h file.

So it seems that during the link there is no signature verification.
Is there an option for this check

thanks


Frederic

-- 
GPG public key   1024D/A59B1171 2009-08-11
    fingerprint = 1688 A3D6 F0BD E4DF 2E6B  06AA B6A9 BA6A A59B 1171
uid  Picca FrÃdÃric-Emmanuel <picca@synchrotron-soleil.fr>

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]