Skip to content

Commit

Permalink
Fix minor GCC warnings.
Browse files Browse the repository at this point in the history
Unused typedefs and unused variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196526 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
arsenm committed Dec 5, 2013
1 parent f3f9cff commit 5024536
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/CodeGen/MachineBlockPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,6 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
BlockChain &FunctionChain = *BlockToChain[&F.front()];
buildChain(&F.front(), FunctionChain, BlockWorkList);

typedef SmallPtrSet<MachineBasicBlock *, 16> FunctionBlockSetType;
DEBUG({
// Crash at the end so we get all of the debugging output first.
bool BadFunc = false;
Expand Down
1 change: 1 addition & 0 deletions tools/lli/ChildTarget/ChildTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ void LLIChildTarget::handleAllocateSpace() {
// Read and verify the message data size.
uint32_t DataSize;
int rc = ReadBytes(&DataSize, 4);
(void)rc;
assert(rc == 4);
assert(DataSize == 8);

Expand Down
1 change: 1 addition & 0 deletions tools/lli/RemoteTargetExternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void RemoteTargetExternal::stop() {

void RemoteTargetExternal::SendAllocateSpace(uint32_t Alignment, uint32_t Size) {
int rc;
(void)rc;
uint32_t MsgType = (uint32_t)LLI_AllocateSpace;
rc = WriteBytes(&MsgType, 4);
assert(rc == 4 && "Error writing message type.");
Expand Down

0 comments on commit 5024536

Please sign in to comment.