This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch corrects -Wcast_qual and -Wc++-compat warnings in the gcc/lto subdirectory. Warnings in this directory are not being treated as errors. gcc/lto: * lto.c (lto_read_decls): Fix C++ compatibility warnings. Make code const-correct. (lto_file_read): Fix C++ compatibility warnings. (lto_read_section_data): Fix C++ compatibility warnings. (lto_get_section_data): Use CONST_CAST to avoid warning when const pointer passed to free. * lto-elf.c (lto_elf_build_section_table): Fix C++ compatibility warnings. (lto_elf_append_data): Fix C++ compatibility warnings. Use CONST_CAST to avoid warning assigning const pointer to d_buf field of Elf_Data. (lto_get_current_out_file): Fix C++ compatibility warnings. --Bill
Attachment:
lto-warning-fix-07-10.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |