leo-arch / clifm

The shell-like, command line terminal file manager: simple, fast, extensible, and lightweight as hell.
https://github.com/leo-arch/clifm/wiki
GNU General Public License v2.0
1.35k stars 39 forks source link

Build failure with -D_NO_SUGGESTIONS #252

Closed FluffyJay1 closed 1 year ago

FluffyJay1 commented 1 year ago

Describe the bug When compiling with -D_NO_SUGGESTIONS:

src/readline.c: In function ‘rl_exclude_input’:
src/readline.c:508:25: warning: implicit declaration of function ‘recover_from_wrong_cmd’ [-Wimplicit-function-declaration]
  508 |                         recover_from_wrong_cmd();
      |                         ^~~~~~~~~~~~~~~~~~~~~~
...in function `my_rl_getc':
readline.c:(.text+0x41d0): undefined reference to `recover_from_wrong_cmd'
collect2: error: ld returned 1 exit status
make: *** [Makefile:39: clifm] Error 1

To Reproduce

make CFLAGS="-D_NO_SUGGESTIONS"

Expected behavior The build succeeds.

Screenshots N/A

Desktop (please complete the following information):

Additional context N/A

leo-arch commented 1 year ago

Thanks @FluffyJay1! Fixed.