diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-09-15 23:16:40 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-03-11 23:38:08 -0800 |
commit | 94b938bb290a231694e5721368023bd6693bb2ed (patch) | |
tree | ce8366bfa9b301add12d53f2ddf13fe7e05b235a /test/files/neg/t8450.flags | |
parent | bd280077d04a3ac84ca48f549faaa8915d46ef2e (diff) | |
download | scala-94b938bb290a231694e5721368023bd6693bb2ed.tar.gz scala-94b938bb290a231694e5721368023bd6693bb2ed.tar.bz2 scala-94b938bb290a231694e5721368023bd6693bb2ed.zip |
SI-8040 Warn unused flags
Introduce `-Ywarn-unused:x,y,z` and exploit `-Ywarn-unused:patvars`.
Although the tree attachment for shielding patvars from warnings
is not structural, sneaking the settings flag into the reflection
internal TreeGen is awkward.
Add test to ensure isolation of patvars warning from others.
`-Ywarn-unused-import` is an alias for `-Ywarn-unused:imports`.
`-Xlint:unused` is an alias for `-Ywarn-unused`, but not enabled
yet. The help text advises to use `-Ywarn-unused`. The future can
decide if `-Xlint:unused-imports` is warranted.
Diffstat (limited to 'test/files/neg/t8450.flags')
0 files changed, 0 insertions, 0 deletions