]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix casing in error messages
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 16 Feb 2024 15:57:10 +0000 (16:57 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 16 May 2024 08:49:25 +0000 (10:49 +0200)
Error messages should not start with a capital letter.

gcc/ada/

* gnat_cuda.adb (Remove_CUDA_Device_Entities): Fix casing
(this primarily fixes a style, because the capitalization will
not be preserved by the error-reporting machinery anyway).
* sem_ch13.adb (Analyze_User_Aspect_Aspect_Specification): Fix
casing in error message.

gcc/ada/gnat_cuda.adb
gcc/ada/sem_ch13.adb

index af47b72879019ce195d76ea13beeb8b8433fd83f..92576a4b397b482408252d7b7bc146a5ad4bdb76 100644 (file)
@@ -270,7 +270,7 @@ package body GNAT_CUDA is
                  and then Present (Corresponding_Stub (Parent (Bod)))
                then
                   Error_Msg_N
-                    ("Cuda_Device not suported on separate subprograms",
+                    ("CUDA_Device not suported on separate subprograms",
                      Corresponding_Stub (Parent (Bod)));
                else
                   Remove (Bod);
index eee2aa09cd5c4d056e05e64590cde105c4a0aa39..8bc8e84ceb4aaf2679f70397dd952d79388a92cf 100644 (file)
@@ -8754,7 +8754,7 @@ package body Sem_Ch13 is
          Arg : Node_Id;
       begin
          if No (UAD_Pragma) then
-            Error_Msg_N ("No definition for user-defined aspect", Id);
+            Error_Msg_N ("no definition for user-defined aspect", Id);
             return;
          end if;