Changeset 2e385d in git for libpolys/misc/sirandom.h


Ignore:
Timestamp:
Nov 11, 2022, 2:37:17 AM (17 months ago)
Author:
Michael Orlitzky <michael@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
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
  • libpolys/misc/sirandom.h

    r4969bd8 r2e385d  
    55#endif
    66EXTERN_VAR int siSeed;
    7 int siRand();
     7int siRand(void);
    88
    9 typedef int (*siRandProc)();
     9typedef int (*siRandProc)(void);
    1010typedef int (*siRandProc1)(int);
    1111int siRandNext(int);
Note: See TracChangeset for help on using the changeset viewer.