gbranden pushed a commit to branch master
in repository groff.

commit 1338938fe70cd984331633a1249a875022217441
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Oct 18 17:49:21 2024 -0500

    [lookbib]: Make `assert()` message communicative.
    
    * src/utils/lookbib/lookbib.cpp (main): Make `assert()` message
      communicative.
---
 ChangeLog                     | 5 +++++
 src/utils/lookbib/lookbib.cpp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d5f724ed3..025639725 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-18  G. Branden Robinson <[email protected]>
+
+       * src/utils/lookbib/lookbib.cpp (main): Make `assert()` message
+       communicative.
+
 2024-10-18  G. Branden Robinson <[email protected]>
 
        Make more commands exit with status 2 on usage error.
diff --git a/src/utils/lookbib/lookbib.cpp b/src/utils/lookbib/lookbib.cpp
index f78b978b3..c3affaec1 100644
--- a/src/utils/lookbib/lookbib.cpp
+++ b/src/utils/lookbib/lookbib.cpp
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
       exit(2);
       break;
     default:
-      assert(0);
+      assert(0 == "unhandled case of command-line option");
     }
   if (optind >= argc) {
     usage(stderr);

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to