Commit 8949688b authored by yoogx's avatar yoogx

* Generate an error if data size is not set

        For openaadl/ocarina#233
parent 1efde028
......@@ -299,6 +299,10 @@ package body Ocarina.Backends.AIR_Conf.Partitions is
-- MaxMessageSize
if Get_Data_Size (Corresponding_Instance (F)) /= Null_Size then
-- If data size is specified, use this value, add
-- 40 to take into account PolyORB-HI/C header
-- (conservative value).
Q :=
......@@ -309,12 +313,8 @@ package body Ocarina.Backends.AIR_Conf.Partitions is
(Loc (F),
"No data size given for data size, " &
"assume a value of 1 byte",
Fatal => False,
Warning => True);
Q := Make_Literal (XV.New_Numeric_Value (1, 1, 10));
"No data size given for data size",
Fatal => True);
end if;
Set_Str_To_Name_Buffer ("MaxMessageSize");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment