Changeset 2e385d in git for kernel/oswrapper/fereadl.c


Ignore:
Timestamp:
Nov 11, 2022, 2:37:17 AM (18 months ago)
Author:
Michael Orlitzky <michael@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b6647a741b9091b82021ff46d4c112099d175d57
Parents:
4969bd84679f00e0090770de53eae064004f1330
git-author:
Michael Orlitzky <michael@orlitzky.com>2022-11-10 20:37:17-05:00
git-committer:
Michael Orlitzky <michael@orlitzky.com>2022-11-10 21:33:22-05:00
Message:
*/*.{c,h}: fix invalid function prototypes.

The C99 standard does not allow function prototypes (or inline
definitions) to have an empty argument list, such as

  int foo(); /* invalid */

This is caught by -Werror=strict-prototypes, which is likely to become
the default in later versions of GCC and clang. This commit corrects
all(?) of them by adding a "void" parameter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/oswrapper/fereadl.c

    r4969bd8 r2e385d  
    826826/* ===================================================================*/
    827827#if defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL)
    828 extern int history_total_bytes();
     828extern int history_total_bytes(void);
    829829extern int write_history (const char *);
    830830#endif
    831 void fe_reset_input_mode ()
     831void fe_reset_input_mode (void)
    832832{
    833833#if defined(HAVE_DYN_RL)
Note: See TracChangeset for help on using the changeset viewer.