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
Unknown Object (File)
Wed, Oct 8, 2:36 PM
Unknown Object (File)
Mon, Oct 6, 9:40 AM
Unknown Object (File)
Fri, Oct 3, 9:23 PM
Unknown Object (File)
Fri, Oct 3, 4:46 PM
Unknown Object (File)
Fri, Oct 3, 2:45 AM
Unknown Object (File)
Sat, Sep 27, 6:28 PM
Unknown Object (File)
Sep 23 2025, 5:28 AM
Unknown Object (File)
Jul 29 2025, 2:05 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
Lint Not Applicable
Unit
Tests Not Applicable

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.