[Lldb-commits] [lldb] r189231 - unused variable, typedef requires name warning cleanup

Michael Sartain mikesart at valvesoftware.com
Mon Aug 26 10:07:35 PDT 2013


Author: mikesart
Date: Mon Aug 26 12:07:34 2013
New Revision: 189231

URL: http://llvm.org/viewvc/llvm-project?rev=189231&view=rev
Log:
unused variable, typedef requires name warning cleanup

Modified:
    lldb/trunk/source/Commands/CommandCompletions.cpp
    lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h

Modified: lldb/trunk/source/Commands/CommandCompletions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandCompletions.cpp?rev=189231&r1=189230&r2=189231&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandCompletions.cpp (original)
+++ lldb/trunk/source/Commands/CommandCompletions.cpp Mon Aug 26 12:07:34 2013
@@ -129,7 +129,7 @@ typedef struct DiskFilesOrDirectoriesBat
     StringList *matches;
     char *end_ptr;
     size_t baselen;
-};
+} DiskFilesOrDirectoriesBaton;
 
 FileSpec::EnumerateDirectoryResult DiskFilesOrDirectoriesCallback(void *baton, FileSpec::FileType file_type, const FileSpec &spec)
 {
@@ -138,7 +138,6 @@ FileSpec::EnumerateDirectoryResult DiskF
     const DiskFilesOrDirectoriesBaton *parameters = (DiskFilesOrDirectoriesBaton*)baton;
     char *end_ptr = parameters->end_ptr;
     char *partial_name_copy = parameters->partial_name_copy;
-    size_t baselen = end_ptr - partial_name_copy;
     const char *remainder = parameters->remainder;
 
     // Omit ".", ".." and any . files if the match string doesn't start with .

Modified: lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h?rev=189231&r1=189230&r2=189231&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h (original)
+++ lldb/trunk/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h Mon Aug 26 12:07:34 2013
@@ -240,7 +240,7 @@ protected:
         uint32_t   address_of_functions;
         uint32_t   address_of_names;
         uint32_t   address_of_name_ordinals;
-    };
+    } export_directory_entry;
     
 	bool ParseDOSHeader ();
 	bool ParseCOFFHeader (lldb::offset_t *offset_ptr);





More information about the lldb-commits mailing list