Correct function return types for new and fussy gcc.
This commit is contained in:
parent
28240dcd30
commit
3dceb55b37
4 changed files with 17 additions and 9 deletions
|
@ -1988,7 +1988,7 @@ debug_name_type (handle, name, type)
|
|||
nm = debug_add_to_namespace (info, &info->current_file->globals, name,
|
||||
DEBUG_OBJECT_TYPE, DEBUG_LINKAGE_NONE);
|
||||
if (nm == NULL)
|
||||
return false;
|
||||
return DEBUG_TYPE_NULL;
|
||||
|
||||
nm->u.type = t;
|
||||
|
||||
|
@ -2044,7 +2044,7 @@ debug_tag_type (handle, name, type)
|
|||
nm = debug_add_to_namespace (info, &info->current_file->globals, name,
|
||||
DEBUG_OBJECT_TAG, DEBUG_LINKAGE_NONE);
|
||||
if (nm == NULL)
|
||||
return false;
|
||||
return DEBUG_TYPE_NULL;
|
||||
|
||||
nm->u.tag = t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue