This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/78981] Sign extension bug when stdlib is not explicitly included while using getenv on amd64.
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jan 2017 16:46:53 +0000
- Subject: [Bug c/78981] Sign extension bug when stdlib is not explicitly included while using getenv on amd64.
- Auto-submitted: auto-generated
- References: <bug-78981-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78981
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
Since getenv is undeclared it is implicitly declared returning int. Use
-Werror=implicit-function-declaration.