diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2017-04-09 23:14:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2017-04-09 23:14:57 -0400 |
commit | 8473b4472dce9ce87aaad35ff8e975e1487f914e (patch) | |
tree | 6233d660976c36815b6f97da8030439360087457 /opcodes/wasm32-dis.c | |
parent | 4a44171e07147c6b943412c90184736ca5dbfb4c (diff) | |
download | gdb-8473b4472dce9ce87aaad35ff8e975e1487f914e.zip gdb-8473b4472dce9ce87aaad35ff8e975e1487f914e.tar.gz gdb-8473b4472dce9ce87aaad35ff8e975e1487f914e.tar.bz2 |
windows-nat.c: Fix bad initialization of ptid
When trying to build for x86_64-w64-mingw32:
/home/simark/src/binutils-gdb/gdb/windows-nat.c: In function ‘void windows_detach(target_ops*, const char*, int)’:
/home/simark/src/binutils-gdb/gdb/windows-nat.c:1915:20: error: converting to ‘ptid_t’ from initializer list would use explicit constructor ‘constexpr ptid_t::ptid_t(int, long int, long int)’
ptid_t ptid = {-1};
^
Fixed by initializing ptid with the minus_one_ptid variable.
gdb/ChangeLog:
* windows-nat.c (windows_detach): Initialize ptid with
minus_one_ptid.
Diffstat (limited to 'opcodes/wasm32-dis.c')
0 files changed, 0 insertions, 0 deletions