linenoise icon indicating copy to clipboard operation
linenoise copied to clipboard

Fix various compiler warnings

Open geoffthorpe opened this issue 9 years ago • 1 comments

I incorporated linenoise into some stuff I'm hacking, where the build is using some fairly picky compiler flags. Fortunately, the changes required to address the warnings were fairly minor.

  • "[...] initialization discards 'const' [...]" (static char *unsupported_term[] = {"dumb","cons25","emacs",NULL};)
  • "[...] ISO C90 forbids mixed declarations and code [...]"
  • "[...] return discards 'const' qualifier from pointer target [...]" (return " World")

Signed-off-by: Geoff Thorpe [email protected]

geoffthorpe avatar Nov 04 '16 18:11 geoffthorpe

Merged https://github.com/rain-1/linenoise/commit/3101b7b033859c9210c206c411073d2f23103779

rain-1 avatar May 15 '18 17:05 rain-1