diff options
author | Pedro Alves <palves@redhat.com> | 2015-11-17 15:17:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-17 15:18:32 +0000 |
commit | 0ae1c716a162ce43a63c16c37aa8c6caaa484650 (patch) | |
tree | 630c06563fd7d07422ec860b14472865d79dc327 /gdb/exec.c | |
parent | cd78b7a16778046c0cfa4818780ea94a9a90c32c (diff) | |
download | gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.zip gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.gz gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.bz2 |
[C++/mingw] Misc alloca casts
gdb/ChangeLog:
2015-11-17 Pedro Alves <palves@redhat.com>
* exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
|| __CYGWIN__]: Add casts.
* utils.c (gdb_filename_fnmatch): Add cast.
* windows-nat.c (windows_create_inferior): Add cast.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -254,7 +254,7 @@ exec_file_attach (const char *filename, int from_tty) #if defined(__GO32__) || defined(_WIN32) || defined(__CYGWIN__) if (scratch_chan < 0) { - char *exename = alloca (strlen (filename) + 5); + char *exename = (char *) alloca (strlen (filename) + 5); strcat (strcpy (exename, filename), ".exe"); scratch_chan = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, |