Article View: gnu.gcc.bug
Article #1GNU C compiler (gcc) doesn't warn that string functions are undeclared
From: meissner
Date: Tue, 27 Oct 1992 04:40
Date: Tue, 27 Oct 1992 04:40
21 lines
1232 bytes
1232 bytes
| While using the latest version of it on OpenVMS Alpha AXP: | | $ cc test_strcpy.c | | strcpy(str,"Hello World!"); | ........^ | %CC-I-PASIMPLFUNDEC, In this statement, the identifier "strcpy" is implicitly de | clared as a function. | at line number 8 in file USER$1:[DOUCETTE]TEST_STRCPY.C;1 | | This is the kind of warning I am looking for. Apparently these functions | are predeclared in some compilers. If you use the -fno-builtin switch, it will disable GCC from implicitly declaring strcpy, memcpy, and friends. -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID:
<9210271440.AA19967@tiktok.osf.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissnerReferences:
meissner@osf.ORGShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner From: meissner@osf.ORG Subject: GNU C compiler (gcc) doesn't warn that string functions are undeclared Message-ID: <9210271440.AA19967@tiktok.osf.org> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet References: meissner@osf.ORG Distribution: gnu Date: Tue, 27 Oct 1992 04:40:58 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 22