]> git.ipfire.org Git - thirdparty/json-c.git/commit
Fix function prototypes in deep nesting test (clang compilation) 925/head
authorMilan Broz <gmazyland@gmail.com>
Tue, 12 May 2026 19:33:14 +0000 (21:33 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 12 May 2026 19:46:50 +0000 (21:46 +0200)
commit1f7589fa2fe639c663b618d5d7d6d508f51c4ab9
treeb5607120ebb4e5a5680aa84287ffe50211db927c
parentccd2803b3d6152431fbb9c83000fc7f802b4727a
Fix function prototypes in deep nesting test (clang compilation)

This patch fixes the build error with clang-21
  tests/test_deep_nesting.c:19:34: error: a function declaration
  without a prototype is deprecated in all versions of C
  [-Werror,-Wstrict-prototypes]
   19 | static char *generate_json_string()

by fixing generate_json_string() definition.

It also removes prototypes for static functions that are not needed.
tests/test_deep_nesting.c