Menu

#21 icns2png.c:70: possible missing "," ?

fixed
nobody
None
5
2022-04-10
2022-04-09
dcb
No

I just tried to compile the package with new C compiler clang-14.

It said:

icns2png.c:70:49: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation]

Source code is

const char *sizeStrs[] = { "1024", "1024x1024" "512", "512x512", "256", "256x256", "128", "128x128", "48", "48x48", "32", "32x32", "16", "16x16", "16x12" };

Maybe better code:

const char *sizeStrs[] = { "1024", "1024x1024", "512", "512x512", "256", "256x256", "128", "128x128", "48", "48x48", "32", "32x32", "16", "16x16", "16x12" };

Discussion

  • Paul Wise

    Paul Wise - 2022-04-10
    • status: open --> fixed
     

Log in to post a comment.