[Ocfs2-tools-devel] [PATCH 1/7] sizetest: Silence build warnings
Sunil Mushran
sunil.mushran at oracle.com
Tue Jun 3 14:46:38 PDT 2008
This patch silences the following warnings:
sizetest.c:48: warning: ' ' flag used with ‘%s’ printf format
sizetest.c:246: warning: function declaration isn’t a prototype
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
sizetest/sizetest.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sizetest/sizetest.c b/sizetest/sizetest.c
index 0b24031..071a1e6 100644
--- a/sizetest/sizetest.c
+++ b/sizetest/sizetest.c
@@ -32,15 +32,15 @@
#define ssizeof(TYPE, MEMBER) ((unsigned int) sizeof(((TYPE *)0)->MEMBER))
#define START_TYPE(TYPE) do { \
- printf("[off]\t%- 20s\t[size]\n", #TYPE); \
+ printf("[off]\t%-20s\t[size]\n", #TYPE); \
} while (0)
#define SHOW_OFFSET(TYPE, MEMBER) do { \
- printf("0x%03X\t%- 20s\t+0x%02X\n", offsetof(TYPE, MEMBER), #MEMBER, ssizeof(TYPE, MEMBER)); \
+ printf("0x%03X\t%-20s\t+0x%02X\n", offsetof(TYPE, MEMBER), #MEMBER, ssizeof(TYPE, MEMBER)); \
} while (0)
#define END_TYPE(TYPE) do {\
- printf("\t%- 20s\t0x%03X\n", "Total", sizeof(*((TYPE *)0))); \
+ printf("\t%-20s\t0x%03X\n", "Total", sizeof(*((TYPE *)0))); \
} while (0)
static void print_ocfs2_extent_rec(void)
@@ -242,7 +242,7 @@ static void print_ocfs2_group_desc(void)
printf("\n");
}
-int main()
+int main(int argc, char **argv)
{
print_ocfs2_extent_rec();
print_ocfs2_chain_rec();
--
1.5.3.6
More information about the Ocfs2-tools-devel
mailing list