diff options
| -rw-r--r-- | lldb/source/Commands/CommandCompletions.cpp | 3 | ||||
| -rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp index 138fdfe5744..970aa692bd2 100644 --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -129,7 +129,7 @@ typedef struct DiskFilesOrDirectoriesBaton 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 DiskFilesOrDirectoriesCallback(void *baton, F 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 . diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h index 6511f06c19a..e4809836035 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h @@ -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); |

