summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/src/gf-changelog-reborp.c
diff options
context:
space:
mode:
authorAnoop C S <achiraya@redhat.com>2015-05-29 16:33:09 +0530
committerVenky Shankar <vshankar@redhat.com>2015-06-01 06:56:04 -0700
commitf266dc6be5b401a7a813adc958d978eb9207cd63 (patch)
tree8a13a05e788c22d2223dd66c05319f53c7095efa /xlators/features/changelog/lib/src/gf-changelog-reborp.c
parentcabb28a028b70172c45c72598e1ac43fbed08411 (diff)
features/changelog: Remove inline keyword to avoid warnings (gcc v5.1.1)v3.7.1
Backport of http://review.gluster.org/11004 When compiled with gcc5, following warnings were displayed and volume start failed: changelog-helpers.h:499:1: warning: inline function 'changelog_dispatch_event' declared but never defined changelog_dispatch_event (xlator_t *, changelog_priv_t *, changelog_event_t *); gf-changelog-journal-handler.c:692:17: warning: 'list_add_tail' is static but used in inline function 'gf_changelog_queue_journal' which is not static list_add_tail (&entry->list, &jnl_proc->entries); Fix is to remove the keyword from function prototype and definitions. Change-Id: I188b35b7ca087a94d7a48a052b05a6d845e3b74b BUG: 1226853 Signed-off-by: Anoop C S <achiraya@redhat.com> Reviewed-on: http://review.gluster.org/11030 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog-reborp.c')
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog-reborp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog-reborp.c b/xlators/features/changelog/lib/src/gf-changelog-reborp.c
index 457d829e69b..2a1e56ae79e 100644
--- a/xlators/features/changelog/lib/src/gf-changelog-reborp.c
+++ b/xlators/features/changelog/lib/src/gf-changelog-reborp.c
@@ -197,7 +197,7 @@ gf_changelog_reborp_init_rpc_listner (xlator_t *this,
*
* @FIXME: cleanup this bugger once server filters events.
*/
-inline void
+void
gf_changelog_invoke_callback (gf_changelog_t *entry,
struct iovec **vec, int payloadcnt)
{
@@ -236,7 +236,7 @@ __is_expected_sequence (struct gf_event_list *ev, struct gf_event *event)
return (ev->next_seq == event->seq);
}
-inline int
+int
__can_process_event (struct gf_event_list *ev, struct gf_event **event)
{
*event = list_first_entry (&ev->events, struct gf_event, list);