Skip note "variable has align directive larger than system maximum alignment" for systems with maxalignvar=1

This commit is contained in:
ccrause 2026-01-05 11:44:25 +02:00
parent 5a2a7deffb
commit d131af1572
2 changed files with 2 additions and 2 deletions

View File

@ -985,7 +985,7 @@ implementation
Message1(scanner_w_alignment_larger_than_max,sym.name);
varalign:=explicitalign;
end
else if (wantedalign>varalign) then
else if (wantedalign>varalign) and (target_info.alignment.varalignmax>1) then
begin
{ varalign:=wantedalign; this can lead to
troubles on systems like for instance

View File

@ -766,7 +766,7 @@ implementation
else
CGMessage1(scanner_w_local_alignment_larger_than_max,def.typename);
end
else if (alignment>lalign) then
else if (alignment>lalign) and (current_settings.alignment.localalignmax>1) then
begin
if assigned(sym) then
CGMessage1(scanner_n_local_alignment_larger_than_max,sym.name)