Squelch warning and delete extra space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8685 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 10f83f8..7634a1a 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -277,12 +277,10 @@
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 @@
//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) {