c-decl.c (start_decl): Do not warn if variables is named as main and is a local variable.
commit0cd020ae59e1131b8d7e23424c319c493745f0f8
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Wed, 15 Aug 2018 15:52:22 +0000 (15 15:52 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Wed, 15 Aug 2018 15:52:22 +0000 (15 15:52 +0000)
treef9611140f858ee59be030aa1f78bfa2bc7d63d19
parentbcee52c4b7ab4a47bb4c2426daa10f5b37968ac7
c-decl.c (start_decl): Do not warn if variables is named as main and is a local variable.

2018-08-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

c/
* c-decl.c (start_decl): Do not warn if variables is named as main
and is a local variable.

testsuite/
* gcc.dg/wmain.c: New test.

From-SVN: r263562
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/wmain.c [new file with mode: 0644]