mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Add cast to exception_none
Fixes, in C++ mode: ../../src/gdb/common/common-exceptions.c:23:69: error: invalid conversion from ‘int’ to ‘return_reason’ [-fpermissive] const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL }; ^ (I considered adding an enum value for '0', but the code and comments around return_reason and its uses explain how 0 is special/internal, so I'm leaving it be.) gdb/ChangeLog: 2015-10-29 Pedro Alves <palves@redhat.com> * common/common-exceptions.c (exception_none): Add cast.
This commit is contained in:
parent
e3bdafe2ba
commit
44a8b4df1d
@ -1,3 +1,7 @@
|
||||
2015-10-29 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* common/common-exceptions.c (exception_none): Add cast.
|
||||
|
||||
2015-10-29 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* compile/compile-c-types.c (struct type_map_instance)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "common-defs.h"
|
||||
#include "common-exceptions.h"
|
||||
|
||||
const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL };
|
||||
const struct gdb_exception exception_none = { (enum return_reason) 0, GDB_NO_ERROR, NULL };
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user