From 29af701f5b8e3d75f211969c6efc491c4c39d5a1 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 23 Sep 2003 17:27:02 +0000 Subject: [PATCH] Squelch warning and delete extra space. llvm-svn: 8685 --- tools/llvm-ar/llvm-ar.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 10f83f8c2e4..7634a1a9e0a 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -277,12 +277,10 @@ bool AddMemberToArchive(string Member, std::ofstream &ArchiveFile) { sprintf(Hdr.gid, "%d", StatBuf.st_gid); //file member date in decimal - sprintf(Hdr.date,"%d", StatBuf.st_mtime); - + sprintf(Hdr.date,"%d", (int)StatBuf.st_mtime); //file member mode in OCTAL sprintf(Hdr.mode,"%d", StatBuf.st_mode); - //add our header trailer memcpy(Hdr.fmag,ARFMAG,sizeof(ARFMAG)); @@ -290,7 +288,6 @@ bool AddMemberToArchive(string Member, std::ofstream &ArchiveFile) { //write header to archive file ArchiveFile.write((char*)&Hdr, sizeof(Hdr)); - //open Member file for reading and copy to buffer int FD = open(Member.c_str(),O_RDONLY); if (FD == -1) {