forked from pool/cppcheck
Accepting request 935858 from home:dirkmueller:Factory
- update to 2.6.2: * New checks in core cppcheck: * missing return in function * writing overlapping data, detect undefined behavior * compared value is out of possible type range * Copy elision optimization can't be applied for return std::move(local) * file can not be opened for read and write access at the same time on different streams * Various improvements - drop 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/935858 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=83
This commit is contained in:
parent
5ed5e2d8b5
commit
057e8566ee
@ -1,29 +0,0 @@
|
||||
From 4cfcffe3ec88dcef8d779ed55a782d351cdffb9c Mon Sep 17 00:00:00 2001
|
||||
From: Lauri Nurmi <lanurmi@iki.fi>
|
||||
Date: Wed, 4 Aug 2021 08:45:50 +0300
|
||||
Subject: [PATCH] Fix compilation with recent glibc where SIGSTKSZ is not
|
||||
constant. (#3378)
|
||||
|
||||
---
|
||||
cli/cppcheckexecutor.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp
|
||||
index 49a8a6f..3fa0857 100644
|
||||
--- a/cli/cppcheckexecutor.cpp
|
||||
+++ b/cli/cppcheckexecutor.cpp
|
||||
@@ -334,7 +334,11 @@ static void print_stacktrace(FILE* output, bool demangling, int maxdepth, bool l
|
||||
#endif
|
||||
}
|
||||
|
||||
+#ifdef __USE_DYNAMIC_STACK_SIZE
|
||||
+static const size_t MYSTACKSIZE = 16*1024+32768; // wild guess about a reasonable buffer
|
||||
+#else
|
||||
static const size_t MYSTACKSIZE = 16*1024+SIGSTKSZ; // wild guess about a reasonable buffer
|
||||
+#endif
|
||||
static char mytstack[MYSTACKSIZE]= {0}; // alternative stack for signal handler
|
||||
static bool bStackBelowHeap=false; // lame attempt to locate heap vs. stack address space. See CppCheckExecutor::check_wrapper()
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dc27154d799935c96903dcc46653c526c6f4148a6912b77d3a50cb35dabd82e1
|
||||
size 3792628
|
3
cppcheck-2.6.2.tar.gz
Normal file
3
cppcheck-2.6.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a11602c15bf951ba5bb67655ca6c06986ec64770d8004759a8c53db013286a5e
|
||||
size 3880239
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 5 20:41:11 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.6.2:
|
||||
* New checks in core cppcheck:
|
||||
* missing return in function
|
||||
* writing overlapping data, detect undefined behavior
|
||||
* compared value is out of possible type range
|
||||
* Copy elision optimization can't be applied for return std::move(local)
|
||||
* file can not be opened for read and write access at the same
|
||||
time on different streams
|
||||
* Various improvements
|
||||
- drop 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 19 09:10:14 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
@ -17,15 +17,13 @@
|
||||
|
||||
|
||||
Name: cppcheck
|
||||
Version: 2.5
|
||||
Version: 2.6.2
|
||||
Release: 0
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/danmar/cppcheck
|
||||
Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: fix-i586.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: gcc-c++
|
||||
|
Loading…
Reference in New Issue
Block a user