Changeset 2e385d in git for omalloc/omBin.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/omBin.h

    r4969bd8 r2e385d  
    1515#define omDeleteSpecBin(bin_ptr) _omUnGetSpecBin(bin_ptr, 1)
    1616void _omUnGetSpecBin(omBin *bin, int force);
    17 long omGetUsedBinBytes();
     17long omGetUsedBinBytes(void);
    1818
    1919omBin omGetStickyBinOfBin(omBin bin);
     
    2525void omDeleteStickyBinTag(omBin bin, unsigned long sticky);
    2626
    27 unsigned long omGetNewStickyAllBinTag();
     27unsigned long omGetNewStickyAllBinTag(void);
    2828void omSetStickyAllBinTag(unsigned long sticky);
    2929void omUnSetStickyAllBinTag(unsigned long sticky);
Note: See TracChangeset for help on using the changeset viewer.