Closed Bug 1735295 Opened 3 years ago Closed 3 years ago

[clang-13] TestDecoders.cpp:61:9: error: variable 'v' set but not used [-Werror,-Wunused-but-set-variable]

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

[task 2021-10-12T08:05:58.857Z] 08:05:58    ERROR -  /builds/worker/checkouts/gecko/image/test/fuzzing/TestDecoders.cpp:61:9: error: variable 'v' set but not used [-Werror,-Wunused-but-set-variable]
[task 2021-10-12T08:05:58.857Z] 08:05:58     INFO -          DUMMY_IF(IntSize(1, 1) == mSurface->GetSize());
[task 2021-10-12T08:05:58.858Z] 08:05:58     INFO -          ^
[task 2021-10-12T08:05:58.858Z] 08:05:58     INFO -  /builds/worker/checkouts/gecko/image/test/fuzzing/TestDecoders.cpp:34:18: note: expanded from macro 'DUMMY_IF'
[task 2021-10-12T08:05:58.858Z] 08:05:58     INFO -      volatile int v; \
[task 2021-10-12T08:05:58.858Z] 08:05:58     INFO -                   ^
[task 2021-10-12T08:05:58.858Z] 08:05:58    ERROR -  /builds/worker/checkouts/gecko/image/test/fuzzing/TestDecoders.cpp:62:9: error: variable 'v' set but not used [-Werror,-Wunused-but-set-variable]
[task 2021-10-12T08:05:58.858Z] 08:05:58     INFO -          DUMMY_IF(IsSolidColor(mSurface, BGRAColor::Green(), 1));
[task 2021-10-12T08:05:58.859Z] 08:05:58     INFO -          ^
[task 2021-10-12T08:05:58.859Z] 08:05:58     INFO -  /builds/worker/checkouts/gecko/image/test/fuzzing/TestDecoders.cpp:34:18: note: expanded from macro 'DUMMY_IF'
[task 2021-10-12T08:05:58.859Z] 08:05:58     INFO -      volatile int v; \
[task 2021-10-12T08:05:58.859Z] 08:05:58     INFO -                   ^
[task 2021-10-12T08:05:58.860Z] 08:05:58     INFO -  2 errors generated.
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/2b17a6233895 Fix unused-but-set-variable warning in TestDecoders.cpp. r=tnikkel
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: