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)
Mon, Nov 24, 1:33 PM
Unknown Object (File)
Tue, Nov 18, 8:41 PM
Unknown Object (File)
Tue, Nov 18, 2:20 PM
Unknown Object (File)
Sat, Nov 15, 8:35 AM
Unknown Object (File)
Mon, Nov 10, 3:22 AM
Unknown Object (File)
Mon, Nov 10, 12:54 AM
Unknown Object (File)
Wed, Nov 5, 5:48 AM
Unknown Object (File)
Sat, Nov 1, 6:49 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.