[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 111dd8d 1/5: Link exception unwinder in auxil
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 111dd8d 1/5: Link exception unwinder in auxiliary programs |
Date: |
Sun, 18 Jul 2021 08:13:54 -0400 (EDT) |
branch: master
commit 111dd8d5e3e61f80e0e07cd297c23bfed42261b2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Link exception unwinder in auxiliary programs
'Makefile.am' needs no such modification because it links 'liblmi'
rather than selected objects.
---
objects.make | 1 +
test_coding_rules.cpp | 3 +++
2 files changed, 4 insertions(+)
diff --git a/objects.make b/objects.make
index 6c253e0..2621716 100644
--- a/objects.make
+++ b/objects.make
@@ -120,6 +120,7 @@ main_auxiliary_common_objects := \
main_common.o \
main_common_non_wx.o \
sigfpe.o \
+ unwind.o \
################################################################################
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 2fc1652..3418e2c 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -28,6 +28,7 @@
#include "miscellany.hpp" // begins_with(), split_into_lines()
#include "path.hpp"
#include "ssize_lmi.hpp"
+#include "unwind.hpp" // scoped_unwind_toggler
#include <algorithm> // is_sorted()
#include <ctime> // time_t
@@ -1278,6 +1279,8 @@ statistics process_file(std::string const& file_path)
int try_main(int argc, char* argv[])
{
+ scoped_unwind_toggler meaningless_name;
+
complaint_count = 0;
bool error_flag = false;
statistics z;