[gjs/cppcheck-fix: 2/4] maint: Fix cppcheck warning about one-definition rule
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/cppcheck-fix: 2/4] maint: Fix cppcheck warning about one-definition rule
- Date: Wed, 25 Aug 2021 06:33:59 +0000 (UTC)
commit e5955f2e5fe13e1ae3c693555683dfe6c4223457
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Aug 24 22:50:48 2021 -0700
maint: Fix cppcheck warning about one-definition rule
This was triggered by the data structure being a class in one branch of
the #ifdef and a struct in the other.
modules/console.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/console.cpp b/modules/console.cpp
index 2ef511aa..a9ed30a3 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -123,7 +123,7 @@ sigjmp_buf AutoCatchCtrlC::jump_buffer;
#else // !HAVE_SIGNAL_H
-struct AutoCatchCtrlC {};
+class AutoCatchCtrlC {};
#endif // !HAVE_SIGNAL_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]