Skip to content

Commit 0d48ebb

Browse files
committed
Fixed issues from Codacy
1 parent a68d4d6 commit 0d48ebb

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

test/run_compare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OPTS1="--grid 1000000 8"
1010
OPTS2="--random 1000000 8 1234"
1111
OPTS3="--random 1000000 8 11223344"
1212

13-
TEST=`which $OLD`
13+
TEST=$(which $OLD)
1414
if [ "$TEST" = "" ]
1515
then
1616
echo "No $OLD found on this machine - skipping script..."
@@ -30,7 +30,7 @@ cd ../utility
3030
gcc $OPTS -O3 mapcode.cpp -lm -o mapcode ../mapcodelib/mapcoder.o
3131
cd ../test
3232

33-
TEST=`which $NEW`
33+
TEST=$(which $NEW)
3434
if [ "$TEST" = "" ]
3535
then
3636
echo "No $NEW found on this machine - skipping script..."

test/run_gcov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast -fprofile-arcs -ftest-coverage"
33
LIB="../mapcodelib/mapcoder.o"
44

5-
TEST=`which gcov`
5+
TEST=$(which gcov)
66
if [ "$TEST" = "" ]
77
then
88
echo "No gcov found on this machine - skipping script..."

test/run_gprof.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
33
LIB="../mapcodelib/mapcoder.o"
44

5-
TEST=`which gprof`
5+
TEST=$(which gprof)
66
if [ "$TEST" = "" ]
77
then
88
echo "No gprof found on this machine - skipping script..."

test/run_sanitizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LIB="../mapcodelib/mapcoder.o"
44

55
export ASAN_OPTIONS=debug=true:strict_string_checks=1:detect_stack_use_after_return=true:detect_invalid_pointer_pairs=99999:detect_container_overflow=true:detect_odr_violation=2:check_initialization_order=true:strict_init_order=true
66

7-
TEST=`which clang`
7+
TEST=$(which clang)
88
if [ "$TEST" = "" ]
99
then
1010
echo "No clang found on this machine - skipping script..."

test/run_valgrind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
33
LIB="../mapcodelib/mapcoder.o"
44

5-
TEST=`which valgrind`
5+
TEST=$(which valgrind)
66
if [ "$TEST" = "" ]
77
then
88
echo "No valgrind found on this machine - skipping script..."

utility/mapcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ int main(const int argc, const char **argv) {
447447
(strcmp(cmd, "--encode") == 0) || (strcmp(cmd, "--encode0") == 0) ||
448448
(strcmp(cmd, "--encode1") == 0) || (strcmp(cmd, "--encode2") == 0) ||
449449
(strcmp(cmd, "--encode3") == 0) || (strcmp(cmd, "--encode4") == 0) ||
450-
(strcmp(cmd, "--encode5") == 0) || (strcmp(cmd, "--encode5") == 0) ||
450+
(strcmp(cmd, "--encode5") == 0) || (strcmp(cmd, "--encode6") == 0) ||
451451
(strcmp(cmd, "--encode7") == 0) || (strcmp(cmd, "--encode8") == 0)) {
452452

453453
// ------------------------------------------------------------------

0 commit comments

Comments
 (0)