re PR ada/87396 (ada/gcc-interface/decl.c:8798:53:Value Conversion Issue: implicit conversion from 'int' to 'char' changes value from 132 to -124: -Wconstant-conversion)

PR ada/87396
	* fe.h (Get_Attribute_Definition_Clause): Use 'unsigned char' instead
	of 'char' as the type of the second parameter.

From-SVN: r264525
This commit is contained in:
Eric Botcazou 2018-09-24 10:29:07 +00:00 committed by Eric Botcazou
parent e78c3eb320
commit 30e36fd00d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-09-24 Eric Botcazou <ebotcazou@adacore.com>
PR ada/87396
* fe.h (Get_Attribute_Definition_Clause): Use 'unsigned char' instead
of 'char' as the type of the second parameter.
2018-09-13 Eric Botcazou <ebotcazou@adacore.com>
* Makefile.rtl (arm% linux-gnueabi%): Always set EH_MECHANISM to -arm.

View File

@ -85,7 +85,7 @@ extern void Set_RM_Size (Entity_Id, Uint);
extern Boolean Is_Entity_Name (Node_Id);
#define Get_Attribute_Definition_Clause einfo__get_attribute_definition_clause
extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, char);
extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, unsigned char);
/* errout: */