OSDN Git Service

Readd the 'return 0;' to please GCC
authorOtavio Salvador <otavio@debian.org>
Wed, 22 Nov 2006 17:40:44 +0000 (15:40 -0200)
committerOtavio Salvador <otavio@debian.org>
Wed, 22 Nov 2006 20:11:20 +0000 (18:11 -0200)
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

index 6d7d773..db9b7c1 100644 (file)
@@ -1285,6 +1285,8 @@ gpt_partition_enumerate (PedPartition* part)
        }
 
        PED_ASSERT (0, return 0);
+
+       return 0; /* used if debug is disabled */
 }
 
 static int