Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951330 - sys-apps/lssbus-0.1-r1 lssbus.c:562:23: error: assignment to ‘struct sbusDevice *’ from incompatible pointer type ‘struct device *’ [-Wincompatible-pointer-types]
Summary: sys-apps/lssbus-0.1-r1 lssbus.c:562:23: error: assignment to ‘struct sbusDev...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2025-03-14 09:14 UTC by immolo
Modified: 2025-03-14 09:22 UTC (History)
1 user (show)

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


Attachments
build.log (lssbus-0.1-r1-build.log,2.10 KB, text/x-log)
2025-03-14 09:14 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description immolo 2025-03-14 09:14:31 UTC
Created attachment 920754 [details]
build.log

sparc64-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed lssbus.c -o lssbus
lssbus.c: In function ‘main’:
lssbus.c:562:23: warning: format not a string literal and no format arguments [-Wformat-security]
  562 |       fprintf(stderr, help_msg);
      |                       ^~~~~~~~
lssbus.c:575:25: warning: format not a string literal and no format arguments [-Wformat-security]
  575 |         fprintf(stderr, help_msg);
      |                         ^~~~~~~~
lssbus.c:595:21: error: assignment to ‘struct sbusDevice *’ from incompatible pointer type ‘struct device *’ [-Wincompatible-pointer-types]
  595 |     devlist[numDevs]=devices;
      |                     ^
make: *** [Makefile:11: lssbus] Error 1

I can't seem to find the upstream sources for this any more so I'm wondering if we should just append -std=gnu89 and call it a day, however opening a bug in case someone disagrees and can see a better fix.