Skip to content

Commit 4f10a18

Browse files
committed
fix gcc warning
1 parent d8247a0 commit 4f10a18

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ GXX_COMPILER_WARNINGS=-Wall # AUTOGEN
66
COMPILER_WARNINGS=$(GCC_COMPILER_WARNINGS) # AUTOGEN
77
COMPILER_WARNINGS=$(GXX_COMPILER_WARNINGS) # AUTOGEN
88
COMPILER_WARNINGS=$(CLANG_COMPILER_WARNINGS) # AUTOGEN
9-
CC=clang++ # AUTOGEN
10-
# CC=gcc # AUTOGEN
11-
# CC=cc # AUTOGEN
12-
# CC=g++ # AUTOGEN
9+
CXX=clang++ # AUTOGEN
10+
# CXX=gcc # AUTOGEN
11+
# CXX=cc # AUTOGEN
12+
# CXX=g++ # AUTOGEN
1313

1414
EXE= # AUTOGEN
1515
LDLIBS= # AUTOGEN

examples/zipped_container_example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static void save_zipper_container(const std::string filename)
118118
fwrite(dst, dstlen, 1, ofile);
119119
fclose(ofile);
120120
delete[] dst;
121-
delete state_compress;
121+
delete[] state_compress;
122122
}
123123

124124
static void load_zipper_container(const std::string filename)
@@ -197,7 +197,7 @@ static void load_zipper_container(const std::string filename)
197197
}
198198
std::cout << std::endl;
199199

200-
delete state_decompress;
200+
delete[] state_decompress;
201201
#ifdef MAKE_COPY
202202
delete[] src;
203203
#endif

0 commit comments

Comments
 (0)