Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
3.28k stars 94 forks source link

fix: Adds -std=c99 compiler flag in build-fzf-tab-module() #361

Closed xtorker closed 1 year ago

xtorker commented 1 year ago

Adds -std=c99 compiler flag in build-fzf-tab-module() to fix the following error.

fzftab.c: In function ‘compile_patterns’: fzftab.c:77:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c:77:5: note: use option -std=c99 or -std=gnu99 to compile your code fzftab.c:93:14: error: redefinition of ‘i’ fzftab.c:77:14: note: previous definition of ‘i’ was here fzftab.c:93:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c:104:9: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c: In function ‘colorize_from_name’: fzftab.c:171:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c: In function ‘bin_fzf_tab_compcap_generate’: fzftab.c:274:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c: In function ‘ftb_strcat’: fzftab.c:308:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c: In function ‘fzf_tab_colorize’: fzftab.c:380:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c: In function ‘bin_fzf_tab_candidates_generate’: fzftab.c:416:5: error: ‘for’ loop initial declarations are only allowed in C99 mode fzftab.c:426:9: error: ‘for’ loop initial declarations are only allowed in C99 mode