summaryrefslogtreecommitdiff
path: root/lib/Archive/ArchiveInternals.h
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:09:23 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:09:23 +0000
commit651e800defafb14ffb7905b9efa8423f1f5c215b (patch)
treed8287b6481e81d606bdfba89b6379bf30b52b540 /lib/Archive/ArchiveInternals.h
parent141e99745adbd3ba9fa7315af3384c1d08c4c20c (diff)
Mark checkSignature const, and in turn stop casting away const from
ArchiveMemberHeader. Found by gcc48 -Wcast-qual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive/ArchiveInternals.h')
-rw-r--r--lib/Archive/ArchiveInternals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Archive/ArchiveInternals.h b/lib/Archive/ArchiveInternals.h
index 55684f7023d..639f5ac2691 100644
--- a/lib/Archive/ArchiveInternals.h
+++ b/lib/Archive/ArchiveInternals.h
@@ -66,7 +66,7 @@ namespace llvm {
fmag[1] = '\n';
}
- bool checkSignature() {
+ bool checkSignature() const {
return 0 == memcmp(fmag, ARFILE_MEMBER_MAGIC,2);
}
};