diff mbox series

[1/2] fixup! fsmonitor-ipc: create client routines for git-fsmonitor--daemon

Message ID 20210809063004.73736-2-carenas@gmail.com (mailing list archive)
State New, archived
Headers show
Series fsmonitor: fixup to avoid warnings from pedantic | expand

Commit Message

Carlo Marcelo Arenas Belón Aug. 9, 2021, 6:30 a.m. UTC
fsmonitor: ensure enum ipc_active_state is defined before using

In file included from fsmonitor.c:6:
fsmonitor-ipc.h:23:6: error: ISO C forbids forward references to 'enum' types [-Werror=pedantic]
   23 | enum ipc_active_state fsmonitor_ipc__get_state(void);
      |      ^~~~~~~~~~~~~~~~
In file included from t/helper/test-fsmonitor-client.c:9:
./fsmonitor-ipc.h:23:6: warning: ISO C forbids forward references to 'enum' types [-Wpedantic]
enum ipc_active_state fsmonitor_ipc__get_state(void);
     ^

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 fsmonitor-ipc.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/fsmonitor-ipc.h b/fsmonitor-ipc.h
index 837c5e5b64..7e02c7285a 100644
--- a/fsmonitor-ipc.h
+++ b/fsmonitor-ipc.h
@@ -1,6 +1,8 @@ 
 #ifndef FSMONITOR_IPC_H
 #define FSMONITOR_IPC_H
 
+#include "simple-ipc.h"
+
 /*
  * Returns true if built-in file system monitor daemon is defined
  * for this platform.