Skip to content

Commit

Permalink
fix the C warning `a function declaration without a prototype is depr…
Browse files Browse the repository at this point in the history
…ecated in all versions of C` (#94)
  • Loading branch information
yihui committed Oct 19, 2022
1 parent 7d3b241 commit 56839bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/html_blocks.h
Expand Up @@ -87,9 +87,9 @@ inline
#endif
#endif
static unsigned int
hash_block_tag (str, len)
register const char *str;
register unsigned int len;
hash_block_tag (
register const char *str,
register unsigned int len)
{
static const unsigned char asso_values[] =
{
Expand Down Expand Up @@ -141,9 +141,9 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
const char *
find_block_tag (str, len)
register const char *str;
register unsigned int len;
find_block_tag (
register const char *str,
register unsigned int len)
{
enum
{
Expand Down

0 comments on commit 56839bd

Please sign in to comment.