7 May
2014
7 May
'14
07:22
Cristian Rodríguez
cat lazy.c
int printf(const char *format, ...);
int main(void) { printf("Problem?"); return 0; }
If you compile that with -Wall -Wextra -pedantic or -WWhatever no warning is emitted and the resulting code calls
..call printf ..
instead of
call __printf_chk .. as it would when
is included.
This program contains nothing about __printf_chk, so why do you think there should be a call to it? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org