Skip to content
Snippets Groups Projects
Commit c5420753 authored by Justin Squirek's avatar Justin Squirek Committed by Marc Poulhiès
Browse files

ada: Spurious maximum nesting level warnings

This patch fixes an issue in the compiler whereby disabling style checks via
pragma Style_Checks ("-L") resulted in the minimum nesting level being zero
but the style still being enabled - leading to spurious maximum nesting level
exceeded warnings.

gcc/ada/

	* stylesw.adb (Set_Style_Check_Options): Disable max nesting level
	when unspecified
parent 90b3826d
No related branches found
No related tags found
No related merge requests found
......@@ -537,7 +537,8 @@ package body Stylesw is
Style_Check_Layout := False;
when 'L' =>
Style_Max_Nesting_Level := 0;
Style_Max_Nesting_Level := 0;
Style_Check_Max_Nesting_Level := False;
when 'm' =>
Style_Check_Max_Line_Length := False;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment