14.5 does not build (unused variable)

Code:
/usr/src/stand/common/gfx_fb.c:270:14: error: unused variable 'ptr' [-Werror,-Wunused-variable]
  270 |         const char *ptr;
      |                     ^~~

From the code it looks like this is just true: the variable is unused.
 
Comment it out to see the effect? Or add a bogus assignment to make it look used.
It looks like it should be something in the same file. It's referenced multiple times in the 15.1 version.
 
Comment it out to see the effect? Or add a bogus assignment to make it look used.
Sure. Running currently.

But the bug is elsewhere. This file is apparently unchanged since 2026-04-12.
14.5-BETA1 was announced 2026-08-09, then BETA2, BETA3, RC1 and RELEASE.
And over all these, nobody ever did run a buildworld?!? Then how was the release created?

Something seriousely doesn't figure.
 
On what platform are you building (version)? And also important: did you apply any customizations in either /etc/make.conf and/or /etc/src.conf?

Because I build 14.5 myself back in the day and had 0 issues with the build process.
 
  • Thanks
Reactions: PMc
On what platform are you building (version)? And also important: did you apply any customizations in either /etc/make.conf and/or /etc/src.conf?

Because I build 14.5 myself back in the day and had 0 issues with the build process.
Yes, this likely comes from an obsolete option in /etc/src.conf, that seems to include some untested code.
 
Back
Top