mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/cppcheck: Updated for version 1.46.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
b1eb764684
commit
1cb6cf94d1
4 changed files with 24 additions and 26 deletions
|
@ -1,13 +1,13 @@
|
|||
Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many
|
||||
other analysis tools, we don't detect syntax errors. Cppcheck only detects
|
||||
the types of bugs that the compilers normally fail to detect. The goal is to
|
||||
have no false positives.
|
||||
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++ compilers
|
||||
and many other analysis tools, it doesn't detect syntax errors. Cppcheck
|
||||
only detects the types of bugs that the compilers normally fail to detect.
|
||||
The goal is to have no false positives.
|
||||
|
||||
To supplement Cppcheck, it is recommended that you enable as many compiler
|
||||
warnings as possible. For the GCC compiler, take a look at
|
||||
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html for a comprehensive
|
||||
list of warning options that GCC supports. At a minimum, it is recommended
|
||||
that you enable -Wall, -Wextra, and -pedantic
|
||||
To supplement Cppcheck, it is recommended that you enable as many
|
||||
compiler warnings as possible. For the GCC compiler, take a look
|
||||
at http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html for a
|
||||
comprehensive list of warning options that GCC supports. At a minimum,
|
||||
it is recommended that you enable -Wall, -Wextra, and -pedantic
|
||||
|
||||
If you do not want to install the manual pages, you can run the build script
|
||||
like this: MAKEMAN=no ./cppcheck.SlackBuild
|
||||
If you do not want to install the manual pages, you can run the build
|
||||
script like this: MAKEMAN=no ./cppcheck.SlackBuild
|
||||
|
|
|
@ -23,18 +23,16 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=cppcheck
|
||||
VERSION=${VERSION:-1.40}
|
||||
VERSION=${VERSION:-1.46}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
MAKEMAN=${MAKEMAN:-yes}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -54,8 +52,8 @@ elif [ "$ARCH" = "x86_64" ]; then
|
|||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -67,8 +65,8 @@ cd $PRGNAM-$VERSION
|
|||
chown root:root . -R
|
||||
|
||||
make \
|
||||
CFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -DNDEBUG" \
|
||||
CXXFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -DNDEBUG"
|
||||
CFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -Wno-long-long -DNDEBUG" \
|
||||
CXXFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -Wno-long-long -DNDEBUG"
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
if [ x"$MAKEMAN" == "xyes" ]; then
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="cppcheck"
|
||||
VERSION="1.40"
|
||||
VERSION="1.46"
|
||||
HOMEPAGE="http://cppcheck.wiki.sourceforge.net"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.40/cppcheck-1.40.tar.gz"
|
||||
MD5SUM="1ef320edb92213b5f24df8f0e21ceeac"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/cppcheck/cppcheck-1.46.tar.gz"
|
||||
MD5SUM="61be721298d975f589e2b82bc038141c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Sean Donner"
|
||||
EMAIL="sean.donner@gmail.com"
|
||||
APPROVED="Erik Hanson"
|
||||
APPROVED="Niels Horn"
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
cppcheck: Cppcheck (A tool for static C/C++ code analysis)
|
||||
cppcheck:
|
||||
cppcheck: Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers
|
||||
cppcheck: and many other analysis tools, we don't detect syntax errors. Cppcheck
|
||||
cppcheck: only detects the types of bugs that the compilers normally fail to
|
||||
cppcheck: detect. The goal is no false positives.
|
||||
cppcheck: Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
|
||||
cppcheck: compilers and many other analysis tools, it doesn't detect syntax
|
||||
cppcheck: errors. Cppcheck only detects the types of bugs that the compilers
|
||||
cppcheck: normally fail to detect. The goal is no false positives.
|
||||
cppcheck:
|
||||
cppcheck:
|
||||
cppcheck:
|
||||
|
|
Loading…
Reference in a new issue