gcc function signature
Picca Frédéric-Emmanuel
frederic-emmanuel.picca@synchrotron-soleil.Fr
Mon Mar 1 17:13:00 GMT 2010
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20100301/3a1ef65f/attachment.sig>
More information about the Gcc-help
mailing list