[llvm] r301595 - Fix a few pedantic warnings.
Frederich Munch via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 15:10:57 PDT 2017
Author: marsupial
Date: Thu Apr 27 17:10:57 2017
New Revision: 301595
URL: http://llvm.org/viewvc/llvm-project?rev=301595&view=rev
Log:
Fix a few pedantic warnings.
Reviewers: zturner, hansw, hans
Reviewed By: hans
Subscribers: hans, llvm-commits
Differential Revision: https://reviews.llvm.org/D32611
Modified:
llvm/trunk/tools/llvm-pdbdump/PdbYaml.cpp
llvm/trunk/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
Modified: llvm/trunk/tools/llvm-pdbdump/PdbYaml.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/PdbYaml.cpp?rev=301595&r1=301594&r2=301595&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/PdbYaml.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/PdbYaml.cpp Thu Apr 27 17:10:57 2017
@@ -311,7 +311,7 @@ void MappingContextTraits<pdb::yaml::Pdb
pdb::yaml::SerializationContext &Context) {
IO.mapRequired("StartColumn", Obj.StartColumn);
IO.mapRequired("EndColumn", Obj.EndColumn);
-};
+}
void MappingContextTraits<pdb::yaml::PdbSourceLineBlock,
pdb::yaml::SerializationContext>::
@@ -320,7 +320,7 @@ void MappingContextTraits<pdb::yaml::Pdb
IO.mapRequired("FileName", Obj.FileName);
IO.mapRequired("Lines", Obj.Lines, Context);
IO.mapRequired("Columns", Obj.Columns, Context);
-};
+}
void MappingContextTraits<pdb::yaml::PdbSourceFileChecksumEntry,
pdb::yaml::SerializationContext>::
@@ -329,7 +329,7 @@ void MappingContextTraits<pdb::yaml::Pdb
IO.mapRequired("FileName", Obj.FileName);
IO.mapRequired("Kind", Obj.Kind);
IO.mapRequired("Checksum", Obj.ChecksumBytes);
-};
+}
void MappingContextTraits<pdb::yaml::PdbSourceLineInfo,
pdb::yaml::SerializationContext>::
@@ -340,7 +340,7 @@ void MappingContextTraits<pdb::yaml::Pdb
IO.mapRequired("RelocOffset", Obj.RelocOffset);
IO.mapRequired("RelocSegment", Obj.RelocSegment);
IO.mapRequired("LineInfo", Obj.LineInfo, Context);
-};
+}
void MappingContextTraits<pdb::yaml::PdbSourceFileInfo,
pdb::yaml::SerializationContext>::
@@ -348,7 +348,7 @@ void MappingContextTraits<pdb::yaml::Pdb
pdb::yaml::SerializationContext &Context) {
IO.mapOptionalWithContext("Lines", Obj.Lines, Context);
IO.mapOptionalWithContext("Checksums", Obj.FileChecksums, Context);
-};
+}
void MappingContextTraits<PdbTpiRecord, pdb::yaml::SerializationContext>::
mapping(IO &IO, pdb::yaml::PdbTpiRecord &Obj,
Modified: llvm/trunk/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp?rev=301595&r1=301594&r2=301595&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp (original)
+++ llvm/trunk/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp Thu Apr 27 17:10:57 2017
@@ -23,8 +23,8 @@ using namespace llvm::sys;
extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "ProcessCall"; }
std::string LibPath() {
- std::string Path =
- fs::getMainExecutable("DynamicLibraryTests", (void *)&TestA);
+ void *Ptr = (void*)(intptr_t)TestA;
+ std::string Path = fs::getMainExecutable("DynamicLibraryTests", Ptr);
llvm::SmallString<256> Buf(path::parent_path(Path));
path::append(Buf, "PipSqueak.so");
return Buf.str();
More information about the llvm-commits
mailing list