diff options
author | Jason Merrill <jason@redhat.com> | 2020-01-10 12:49:03 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-01-21 18:40:19 -0500 |
commit | 731dbfc3f3b586e78f2ccdca24561ea3369c6338 (patch) | |
tree | 09c32959a13bc55ae6e02299dbec36f1b85d56ca /libgcc | |
parent | 0501b74264e93bf9ebf45cf10a624a549dc474f1 (diff) | |
download | gcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.zip gcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.tar.gz gcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.tar.bz2 |
Handle -Wsign-conversion in conversion_warning.
It seemed strange to me to warn about sign conversion in
unsafe_conversion_p, when other warnings are in conversion_warning, and the
latter function is the only place that asks the former function to warn.
This change is also necessary for my -Warith-conversion patch.
* c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
* c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions