Changeset 2e385d in git for omalloc/omStats.h


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
  • omalloc/omStats.h

    r4969bd8 r2e385d  
    3535
    3636/* returns a copy of omallinfo struct */
    37 extern struct omInfo_s omGetInfo();
     37extern struct omInfo_s omGetInfo(void);
    3838/* the struct itself which is always up-to-date */
    3939/* use read-only */
    4040extern struct omInfo_s om_Info;
    4141/* update the global info struct */
    42 extern void omUpdateInfo();
     42extern void omUpdateInfo(void);
    4343/* initialize such that sbrk can be measured */
    44 extern void omInitInfo();
     44extern void omInitInfo(void);
    4545extern void omPrintStats(FILE* fd);
    4646extern void omPrintInfo(FILE* fd);
Note: See TracChangeset for help on using the changeset viewer.