kyx0r / nextvi

A small vi/ex terminal text editor (neatvi rewrite)
158 stars 17 forks source link

conflicting types #21

Closed polluks2 closed 2 years ago

polluks2 commented 2 years ago

MorphOS says

In file included from vi.c:39:
regex.c:263:5: error: conflicting types for 're_comp'
  263 | int re_comp(rcode *prog, const char *re, int nsubs, int flags)
      |     ^~~~~~~
In file included from vi.c:27:
/gg/include/unistd.h:144:10: note: previous declaration of 're_comp' was here
  144 | char    *re_comp __P((const char *));
      |          ^~~~~~~
kyx0r commented 2 years ago

On 6/10/22, polluks2 @.***> wrote:

MorphOS says


In file included from vi.c:39:
regex.c:263:5: error: conflicting types for 're_comp'
  263 | int re_comp(rcode *prog, const char *re, int nsubs, int flags)
      |     ^~~~~~~
In file included from vi.c:27:
/gg/include/unistd.h:144:10: note: previous declaration of 're_comp' was
here
  144 | char    *re_comp __P((const char *));
      |          ^~~~~~~

Well that's annoying. Just rename it. Does it work or you get more errors?

kyx0r commented 2 years ago

Hi, did you solve this?

polluks2 commented 2 years ago

Indeed, gcc11 and clang are content.

kyx0r commented 2 years ago

@polluks2 try the last commit, does it work?

polluks2 commented 2 years ago

works, thx