]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove redundant parentheses inside unary operators in comments
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 9 Jan 2025 23:31:11 +0000 (00:31 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 13 Jan 2025 10:52:59 +0000 (11:52 +0100)
GNAT already emits a style warning when redundant parentheses appear inside
logical and short-circuit operators. A similar warning will be soon emitted for
unary operators as well. This patch removes the redundant parentheses to avoid
future build errors.

gcc/ada/ChangeLog:

* libgnat/s-genbig.adb: Remove redundant parentheses in comments.

gcc/ada/libgnat/s-genbig.adb

index 82bf3f76fc2e5878aa68f90fa0a87fd5a9631b48..2780305e042b88484550f8ac97e4276d4bc00f24 100644 (file)
@@ -91,7 +91,7 @@ package body System.Generic_Bignums is
       Remainder         : out Big_Integer;
       Discard_Quotient  : Boolean := False;
       Discard_Remainder : Boolean := False);
-   --  Returns the Quotient and Remainder from dividing abs (X) by abs (Y). The
+   --  Returns the Quotient and Remainder from dividing abs X by abs Y. The
    --  values of X and Y are not modified. If Discard_Quotient is True, then
    --  Quotient is undefined on return, and if Discard_Remainder is True, then
    --  Remainder is undefined on return. Service routine for Big_Div/Rem/Mod.