Clean up compiler warnings + Build pzstd on travis
This commit is contained in:
parent
5b8c024716
commit
1e2f6a1f5d
@ -19,7 +19,7 @@ matrix:
|
|||||||
packages:
|
packages:
|
||||||
- gcc-4.8
|
- gcc-4.8
|
||||||
- g++-4.8
|
- g++-4.8
|
||||||
env: PLATFORM="Ubuntu 12.04 container" CMD="make -C tests test-zstd_nolegacy && make clean && make zlibwrapper && make clean && make cmaketest && make -C contrib/pzstd googletest && make -C contrib/pzstd test && make -C contrib/pzstd clean"
|
env: PLATFORM="Ubuntu 12.04 container" CMD="make -C tests test-zstd_nolegacy && make clean && make zlibwrapper && make clean && make cmaketest && make clean && make -C contrib/pzstd pzstd && make -C contrib/pzstd googletest && make -C contrib/pzstd test && make -C contrib/pzstd clean"
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: false
|
sudo: false
|
||||||
env: PLATFORM="Ubuntu 12.04 container" CMD="make usan"
|
env: PLATFORM="Ubuntu 12.04 container" CMD="make usan"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <cassert>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -47,9 +48,7 @@ class ErrorHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
~ErrorHolder() {
|
~ErrorHolder() {
|
||||||
if (hasError()) {
|
assert(!hasError());
|
||||||
throw std::logic_error(message_);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
ZSTDDIR = ../../lib
|
ZSTDDIR = ../../lib
|
||||||
PROGDIR = ../../programs
|
PROGDIR = ../../programs
|
||||||
|
|
||||||
CPPFLAGS = -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/dictBuilder -I$(PROGDIR) -I.
|
CPPFLAGS = -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(PROGDIR) -I.
|
||||||
CXXFLAGS ?= -O3
|
CXXFLAGS ?= -O3
|
||||||
CXXFLAGS += -std=c++11
|
CXXFLAGS += -std=c++11
|
||||||
CXXFLAGS += $(MOREFLAGS)
|
CXXFLAGS += $(MOREFLAGS)
|
||||||
@ -55,7 +55,7 @@ main.o: main.cpp *.h utils/*.h
|
|||||||
$(CXX) $(FLAGS) -c main.cpp -o $@
|
$(CXX) $(FLAGS) -c main.cpp -o $@
|
||||||
|
|
||||||
pzstd: Pzstd.o SkippableFrame.o Options.o main.o libzstd.a
|
pzstd: Pzstd.o SkippableFrame.o Options.o main.o libzstd.a
|
||||||
$(CXX) $(FLAGS) $^ -o $@$(EXT)
|
$(CXX) $(FLAGS) $^ -o $@$(EXT) -lpthread
|
||||||
|
|
||||||
googletest:
|
googletest:
|
||||||
@git clone https://github.com/google/googletest
|
@git clone https://github.com/google/googletest
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
#include "SkippableFrame.h"
|
#include "SkippableFrame.h"
|
||||||
#include "common/mem.h"
|
#include "mem.h"
|
||||||
#include "utils/Range.h"
|
#include "utils/Range.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
Loading…
Reference in New Issue
Block a user