[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #43569] [PATCH] fix compile warnings with gcc 4.6.3
From: |
G. Branden Robinson |
Subject: |
[bug #43569] [PATCH] fix compile warnings with gcc 4.6.3 |
Date: |
Sat, 16 Apr 2022 05:00:08 -0400 (EDT) |
Follow-up Comment #12, bug #43569 (project groff):
Oh, I forgot to add these. The first is also responsive to Ingo's comment #9.
The second was my response to a shock I received when testing deliberately
corrupted files.
commit 9c4da4d6925431b4969fe01bac8ec4f8e51da4d4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Fri Apr 15 08:14:07 2022 +1000
[grn]: Add more input validity checking.
* src/preproc/grn/hdb.cpp (DBRead): Add more validity checking. Verify
that the number of conversions returned by fscanf() is as expected
instead of throwing this information away--abort processing ("giving
up" like pic(1) does) if it does not. Consistently report this
abandonment in diagnostic messages. Similarly validate pointer
returned by fgets(). Soften handling of invalid text condition from
fatal errors, introduced in commit eb4f0675e, 16 August, to throw an
error and give up. Addresses "-Wunused-result" warnings from GCC.
commit 646539bc119e7dd838851deb77877c64d82241e7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Fri Apr 15 08:32:44 2022 +1000
[grn]: Emit error when failing to open file.
* src/preproc/grn/main.cpp (conv): Throw an error diagnostic when
failing to open a Gremlin picture file.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?43569>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/