diff src/crypt.c @ 32280:ca4e81de477a v9.0.1471

patch 9.0.1471: warnings for function declarations Commit: https://github.com/vim/vim/commit/be9624eb47ff4db4f068c65ad9cd37b14d1818a8 Author: Michael Jarvis <michael@jarvis.com> Date: Wed Apr 19 20:28:48 2023 +0100 patch 9.0.1471: warnings for function declarations Problem: Warnings for function declarations. Solution: Add argument types. (Michael Jarvis, closes https://github.com/vim/vim/issues/12277)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Apr 2023 21:30:03 +0200
parents 4545f58c8490
children 3d4e28569a6d
line wrap: on
line diff
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -40,7 +40,7 @@ typedef struct {
     int	    whole_undofile; // whole undo file is encrypted
 
     // Optional function pointer for a self-test.
-    int (* self_test_fn)();
+    int (* self_test_fn)(void);
 
     // Function pointer for initializing encryption/decryption.
     int (* init_fn)(cryptstate_T *state, char_u *key,