Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916457 - x11-apps/xcur2png-0.7.1 xcur2png.c:674:10: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
Summary: x11-apps/xcur2png-0.7.1 xcur2png.c:674:10: error: type specifier missing, def...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: tea
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-28 23:02 UTC by Denis Strizhkin
Modified: 2023-11-06 14:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.49 KB, text/x-log)
2023-10-28 23:02 UTC, Denis Strizhkin
Details
emerge --info (emerge-info.txt,6.45 KB, text/plain)
2023-10-28 23:05 UTC, Denis Strizhkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Strizhkin 2023-10-28 23:02:43 UTC
Created attachment 873625 [details]
build.log

On llvm profile can't compile x11-apps/xcur2png-0.7.1

make[2]: Entering directory '/var/tmp/portage/x11-apps/xcur2png-0.7.1/work/xcur2png-0.7.1'
clang -DHAVE_CONFIG_H -I.    -I/usr/include/libpng16 -O2 -march=native -c xcur2png.c
xcur2png.c:109:14: warning: using the result of an assignment as a
      condition without parentheses [-Wparentheses]
  109 |   while (ret = getopt_long (argc, argv, "Vhc:d:i:qn", longopts, NULL))
      |          ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcur2png.c:109:14: note: place parentheses around the assignment to
      silence this warning
  109 |   while (ret = getopt_long (argc, argv, "Vhc:d:i:qn", longopts, NULL))
      |              ^                                                       
      |          (                                                           )
xcur2png.c:109:14: note: use '==' to turn this assignment into an equality
      comparison
  109 |   while (ret = getopt_long (argc, argv, "Vhc:d:i:qn", longopts, NULL))
      |              ^
      |              ==
xcur2png.c:674:10: error: type specifier missing, defaults to 'int'; ISO
      C99 and later do not support implicit int [-Wimplicit-int]
  674 |   extern dry_run;
      |   ~~~~~~ ^
      |   int
1 warning and 1 error generated.
Comment 1 Denis Strizhkin 2023-10-28 23:05:13 UTC
Created attachment 873626 [details]
emerge --info
Comment 2 tea 2023-11-03 14:04:24 UTC
reproduced with clang-17.0.3.
workaround: add -std=gnu89 to the CFLAGS for this package
fix is on its way
Comment 3 Larry the Git Cow gentoo-dev 2023-11-06 14:18:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0c24593742e5e96165c08c52889be3ba7f59abb

commit d0c24593742e5e96165c08c52889be3ba7f59abb
Author:     tastytea <gentoo@tastytea.de>
AuthorDate: 2023-11-03 14:08:19 +0000
Commit:     tastytea <gentoo@tastytea.de>
CommitDate: 2023-11-03 17:42:32 +0000

    x11-apps/xcur2png: update EAPI 7 -> 8, fix CFLAGS
    
    Closes: https://bugs.gentoo.org/916457
    Signed-off-by: tastytea <gentoo@tastytea.de>

 x11-apps/xcur2png/xcur2png-0.7.1-r1.ebuild | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)