[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/18: [grohtml]: Quieten -Wparentheses compiler warning.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/18: [grohtml]: Quieten -Wparentheses compiler warning. |
Date: |
Sun, 2 Jan 2022 10:33:57 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 87c252547e3420e5b2b5c5f467d147348bd80426
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Dec 30 22:53:48 2021 +1100
[grohtml]: Quieten -Wparentheses compiler warning.
* src/preproc/html/pre-html.cpp (get_image_generator): Clarify complex
conditional expression. Quietens `-Wparentheses` warning from GCC
8.3.
---
ChangeLog | 6 ++++++
src/preproc/html/pre-html.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b1fa3d2a..3b30b3e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-12-30 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/preproc/html/pre-html.cpp (get_image_generator): Clarify
+ complex conditional expression. Quietens `-Wparentheses`
+ warning from GCC 8.3.
+
2021-12-28 G. Branden Robinson <g.branden.robinson@gmail.com>
[me]: Rename new `$x` register to `sx`. Since we expect the
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 49c69e9d..a3e09db0 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -341,7 +341,7 @@ static char *get_image_generator(void)
if(!(' ' == *cursor) || ('\t' == *cursor))
continue;
cursor++;
- while((cursor < end) && (' ' == *cursor) || ('\t' == *cursor))
+ while((cursor < end) && ((' ' == *cursor) || ('\t' == *cursor)))
cursor++;
if (cursor == end)
continue;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/18: [grohtml]: Quieten -Wparentheses compiler warning.,
G. Branden Robinson <=