mirror of
https://github.com/labwc/labwc.git
synced 2026-05-06 06:47:33 -04:00
src/img/img-xpm.c: fix unused variable warning
This fixes a warning in gcc16 below:
../src/img/img-xpm.c: In function ‘xpm_load_to_surface’:
../src/img/img-xpm.c:354:33: warning: variable ‘xcnt’ set but not used [-Wunused-but-set-variable=]
354 | for (int n = 0, xcnt = 0; n < wbytes; n += cpp, xcnt++) {
| ^~~~
This commit is contained in:
parent
6ce25978e7
commit
0ff9af4ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ xpm_load_to_surface(struct file_handle *handle)
|
|||
goto out;
|
||||
}
|
||||
|
||||
for (int n = 0, xcnt = 0; n < wbytes; n += cpp, xcnt++) {
|
||||
for (int n = 0; n < wbytes; n += cpp) {
|
||||
g_strlcpy(pixel_str, &buffer[n], cpp + 1);
|
||||
|
||||
struct xpm_color *color =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue