bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build problems with 1.4.12 ...


From: Pixel
Subject: Re: Build problems with 1.4.12 ...
Date: Tue, 22 May 2001 14:07:05 +0200 (CEST)
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Timshel Knoll <address@hidden> writes:

> Andrew ...
> 
> Your CFLAGS += -Werror might have backfired on you ;-)
> 
> Using gcc 2.95.4, I have a number of failures during the build:

and with gcc-2.96 and glibc-2.2.2 i also need:

--- parted-1.4.12/libparted/fs_ext2/ext2_mkfs.c.pix     Wed May 16 13:14:36 2001
+++ parted-1.4.12/libparted/fs_ext2/ext2_mkfs.c Tue May 22 13:55:29 2001
@@ -22,6 +22,7 @@
 #define USE_EXT2_IS_DATA_BLOCK
 #include "config.h"
 
+#include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/stat.h>
--- parted-1.4.12/libparted/disk.c.pix  Wed May 16 01:30:16 2001
+++ parted-1.4.12/libparted/disk.c      Tue May 22 13:57:29 2001
@@ -763,7 +763,7 @@
 int
 ped_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type)
 {
-       PedDiskType*            disk_type;
+       PedDiskType*            disk_type = NULL;
        PedFileSystem*          fs;
 
        PED_ASSERT (part != NULL, return 0);


otherwise 
.
ext2_mkfs.c: In function `ext2_mkfs_write_main':
ext2_mkfs.c:88: warning: implicit declaration of function `memcpy'
ext2_mkfs.c: In function `ext2_mkfs_write_meta':
ext2_mkfs.c:152: warning: implicit declaration of function `memset'
ext2_mkfs.c: In function `_set_dirent':
ext2_mkfs.c:257: warning: implicit declaration of function `strlen'
ext2_mkfs.c:271: warning: implicit declaration of function `strcpy'
.
disk.c: In function `ped_partition_set_system':
disk.c:766: warning: `disk_type' might be used uninitialized in this function


maybe there may be a better patch for disk_type :)


cu Pixel.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]