gold/ChangeLog:
* plugin.cc (ld_plugin_message): Change format parameter to const. Fix mismatch between new[] and delete. include/ChangeLog: * plugin-api.h (ld_plugin_message): Change format parameter to const.
This commit is contained in:
parent
a6bfd026d0
commit
6c52134ce6
4 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-01 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* plugin.cc (ld_plugin_message): Change format parameter to const.
|
||||
Fix mismatch between new[] and delete.
|
||||
|
||||
2008-11-14 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
|
||||
|
|
|
@ -68,7 +68,7 @@ static enum ld_plugin_status
|
|||
add_input_file(char *pathname);
|
||||
|
||||
static enum ld_plugin_status
|
||||
message(int level, char *format, ...);
|
||||
message(int level, const char *format, ...);
|
||||
|
||||
};
|
||||
|
||||
|
@ -194,7 +194,7 @@ Plugin::load()
|
|||
// Call the onload entry point.
|
||||
(*onload)(tv);
|
||||
|
||||
delete tv;
|
||||
delete[] tv;
|
||||
#endif // ENABLE_PLUGINS
|
||||
}
|
||||
|
||||
|
@ -892,7 +892,7 @@ add_input_file(char *pathname)
|
|||
// Issue a diagnostic message from a plugin.
|
||||
|
||||
static enum ld_plugin_status
|
||||
message(int level, char * format, ...)
|
||||
message(int level, const char * format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2008-12-01 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* plugin-api.h (ld_plugin_message): Change format parameter to const.
|
||||
|
||||
2008-12-01 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* plugin-api.h: Fix syntax error when compiling with C++.
|
||||
|
|
|
@ -182,7 +182,7 @@ enum ld_plugin_status
|
|||
|
||||
typedef
|
||||
enum ld_plugin_status
|
||||
(*ld_plugin_message) (int level, char *format, ...);
|
||||
(*ld_plugin_message) (int level, const char *format, ...);
|
||||
|
||||
enum ld_plugin_level
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue