diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-13 18:27:14 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-12-18 12:23:57 +0200 |
| commit | 00a14befa954162723142571caf301f9679c6059 (patch) | |
| tree | e330184402e465e1bbb13037ee9409a7dd518bf0 /.github/workflows | |
| parent | 0271a62e676d50940ec5f86d94cf66629894c25f (diff) | |
fix: Resolve variable shadowing warnings
This commit addresses cppcheck warnings about local variables that shadow
outer function names (shadowFunction). Variable shadowing can make code
confusing and error-prone as it's unclear which variable is being referenced.
Changes made:
- kmscube/cube-egl.cpp: Renamed 'config' to 'cfg' in loop to avoid shadowing
the config() member function
- kmscube/cube-gbm.cpp: Renamed 'width' and 'height' local variables to
'bo_width' and 'bo_height' to avoid shadowing width() and height() member
functions
These changes improve code clarity and eliminate potential confusion about
variable scope and naming.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions
