gcc function signature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux