0001-Fix-some-warnings-in-ilist.h-pointed-out-by-cplusplu.patch
text/x-patch
Filename: 0001-Fix-some-warnings-in-ilist.h-pointed-out-by-cplusplu.patch
Type: text/x-patch
Part: 0
Message:
Re: ilist.h fails cpluspluscheck
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
Series: patch 0001
| File | + | − |
|---|---|---|
| src/include/lib/ilist.h | 3 | 3 |
>From 8089edcc6d448529dbd091ec95a69e138a55efa6 Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Tue, 27 Nov 2012 10:55:37 +0100
Subject: [PATCH] Fix some warnings in ilist.h pointed out by cpluspluscheck
via Peter
---
src/include/lib/ilist.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/include/lib/ilist.h b/src/include/lib/ilist.h
index bc684b8..8f58486 100644
--- a/src/include/lib/ilist.h
+++ b/src/include/lib/ilist.h
@@ -467,7 +467,7 @@ dlist_head_element_off(dlist_head *head, size_t off)
STATIC_IF_INLINE dlist_node *
dlist_head_node(dlist_head *head)
{
- return dlist_head_element_off(head, 0);
+ return (dlist_node *) dlist_head_element_off(head, 0);
}
/* internal support function to get address of tail element's struct */
@@ -484,7 +484,7 @@ dlist_tail_element_off(dlist_head *head, size_t off)
STATIC_IF_INLINE dlist_node *
dlist_tail_node(dlist_head *head)
{
- return dlist_tail_element_off(head, 0);
+ return (dlist_node *) dlist_tail_element_off(head, 0);
}
#endif /* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */
@@ -677,7 +677,7 @@ slist_head_element_off(slist_head *head, size_t off)
STATIC_IF_INLINE slist_node *
slist_head_node(slist_head *head)
{
- return slist_head_element_off(head, 0);
+ return (slist_node *) slist_head_element_off(head, 0);
}
#endif /* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */
--
1.7.12.289.g0ce9864.dirty