Changeset 2e385d in git for omalloc/omOpts.h


Ignore:
Timestamp:
Nov 11, 2022, 2:37:17 AM (19 months ago)
Author:
Michael Orlitzky <michael@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
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
  • omalloc/omOpts.h

    r4969bd8 r2e385d  
    1919  int MarkAsStatic;
    2020  unsigned int PagesPerRegion;
    21   void (*OutOfMemoryFunc)();
    22   void (*MemoryLowFunc)();
    23   void (*ErrorHook)();
     21  void (*OutOfMemoryFunc)(void);
     22  void (*MemoryLowFunc)(void);
     23  void (*ErrorHook)(void);
    2424};
    2525extern omOpts_t om_Opts;
Note: See TracChangeset for help on using the changeset viewer.