From b593b0219787646cecc64818c3618afada5075b9 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 22 Nov 2006 15:40:44 -0200 Subject: [PATCH] Readd the 'return 0;' to please GCC The commit d000de8f062ce070d5310f164ebf4f5ed26fcad0 included a compilation warning that makes sense when Parted is built without debugging. To solve the warning and ensure that when running without debugging we return a sinsible value I've reverted d000de8f062ce070d5310f164ebf4f5ed26fcad0 change and added a nice comment to avoid misunderstandings again. --- libparted/labels/gpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c index 6d7d773..db9b7c1 100644 --- a/libparted/labels/gpt.c +++ b/libparted/labels/gpt.c @@ -1285,6 +1285,8 @@ gpt_partition_enumerate (PedPartition* part) } PED_ASSERT (0, return 0); + + return 0; /* used if debug is disabled */ } static int -- 2.11.0