Page MenuHomeFreeBSD

textproc/topic: fix build with GCC-based architectures
ClosedPublic

Authored by pkubaj on May 17 2019, 10:49 AM.
Tags
None
Referenced Files
F163254548: D20285.id57500.diff
Tue, Jul 21, 11:28 AM
Unknown Object (File)
Mon, Jul 20, 10:19 PM
Unknown Object (File)
Mon, Jul 20, 2:20 AM
Unknown Object (File)
Sun, Jul 19, 1:10 PM
Unknown Object (File)
Sat, Jul 18, 1:53 AM
Unknown Object (File)
Sat, Jul 4, 4:25 PM
Unknown Object (File)
Fri, Jul 3, 3:27 PM
Unknown Object (File)
Jun 21 2026, 3:41 AM
Subscribers
None

Details

Summary

Remove -Werror to fix this:
./linenoise.c: In function 'linenoiseEdit':
./linenoise.c:765: warning: comparison is always false due to limited range of data type

With -Werror, it causes a build error on GCC architectures.

PR: 237555

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 24290
Build 23116: arc lint + arc unit

Event Timeline

Not quite sure if that makes sense. Won't the compiled binary basically do garbage in this case?

Add specific signed to the variable. This solves the build issue.

This revision is now accepted and ready to land.May 20 2019, 12:37 PM
This revision was automatically updated to reflect the committed changes.