martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

trivial: one single warning during compilation #1058

Closed hholst80 closed 1 year ago

hholst80 commented 1 year ago

during compilation I got this single warning (gcc v11)

text-io.c:245:17: warning: ignoring return value of ‘fchdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  245 |                 fchdir(cwd);
      |                 ^~~~~~~~~~~

It would be nice to get a 100% warning free compile ;-)

mcepl commented 1 year ago

Proposed patch is https://lists.sr.ht/~martanne/devel/patches/37376

ninewise commented 1 year ago

That patch was merged, so I'm closing this issue here.