diff options
author | Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> | 2019-09-04 16:25:21 +0000 |
---|---|---|
committer | Prathamesh Kulkarni <prathamesh3492@gcc.gnu.org> | 2019-09-04 16:25:21 +0000 |
commit | 68e2c1996ec6bde27363ce0db15233ac8cae1c4d (patch) | |
tree | f36d29fb8fb3e378f3c06105410c3d6b2f368994 /gcc/cp/lambda.c | |
parent | bc7f7ff954679ac46771f56cbb947a4c19557d98 (diff) | |
download | gcc-68e2c1996ec6bde27363ce0db15233ac8cae1c4d.zip gcc-68e2c1996ec6bde27363ce0db15233ac8cae1c4d.tar.gz gcc-68e2c1996ec6bde27363ce0db15233ac8cae1c4d.tar.bz2 |
Add warning Wenum-conversion for C and ObjC.
The patch enables warning with Wextra due to PR91593 and warnings with
allmodconfig kernel build. Once these issues are resolved, we could
consider promoting it to Wall.
2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR c/78736
* doc/invoke.texi: Document -Wenum-conversion.
c-family
* c.opt (Wenum-conversion): New option.
c/
* c-typeck.c (convert_for_assignment): Handle Wenum-conversion.
testsuite/
* gcc.dg/Wenum-conversion.c: New test-case.
From-SVN: r275376
Diffstat (limited to 'gcc/cp/lambda.c')
0 files changed, 0 insertions, 0 deletions