Skip to content

Commit

Permalink
Merge branch 'leo/tgen_constant_fix' into 'master'
Browse files Browse the repository at this point in the history
TGen: fix unreferenced variable warning

Closes #1

See merge request eng/ide/libadalang-tools!7
  • Loading branch information
leocreuse committed Dec 13, 2022
2 parents 30a85b3 + e516b0a commit f444fdb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tgen/tgen-libgen.adb
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,15 @@ package body TGen.Libgen is
(if Root_Templates_Dir = ""
then Ada.Directories.Containing_Directory
(GNAT.OS_Lib.Locate_Exec_On_Path
(Ada.Command_Line.Command_Name).all)
else Root_Templates_Dir) & "/../share/tgen/templates";
(Ada.Command_Line.Command_Name).all
& "/../share/tgen/templates")
else Root_Templates_Dir);
-- Try to find the templates in the canonical installation path if not
-- supplied.

begin
return (Output_Dir => To_Unbounded_String (Output_Dir),
Root_Templates_Dir => To_Unbounded_String (Root_Templates_Dir),
Root_Templates_Dir => To_Unbounded_String (Actual_Templates_Dir),
User_Project_Path => To_Unbounded_String (User_Project_Path),
others => <>);
end Create;
Expand Down

0 comments on commit f444fdb

Please sign in to comment.