From 85829c973cb33592dbc0b0f3aaf9132f5dea6953 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 6 Aug 2024 23:04:22 +0300 Subject: Make nullSemAction const, add 'const' decorators to related functions To make it more clear that these should never be modified. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/54c29fb0-edf2-48ea-9814-44e918bbd6e8@iki.fi --- src/test/modules/test_json_parser/test_json_parser_incremental.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/modules/test_json_parser/test_json_parser_incremental.c') diff --git a/src/test/modules/test_json_parser/test_json_parser_incremental.c b/src/test/modules/test_json_parser/test_json_parser_incremental.c index 47040e1e421..294e5f74eac 100644 --- a/src/test/modules/test_json_parser/test_json_parser_incremental.c +++ b/src/test/modules/test_json_parser/test_json_parser_incremental.c @@ -84,7 +84,7 @@ main(int argc, char **argv) size_t chunk_size = DEFAULT_CHUNK_SIZE; struct stat statbuf; off_t bytes_left; - JsonSemAction *testsem = &nullSemAction; + const JsonSemAction *testsem = &nullSemAction; char *testfile; int c; bool need_strings = false; -- cgit v1.2.3