Added doc target to netlist makefile. Removed old style cast. (nw)

This commit is contained in:
couriersud 2016-08-06 19:22:17 +02:00
parent 20a584b348
commit 7a7c123d1e
2 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,7 @@ CC = g++-5
LD = @g++-5
MD = @mkdir
RM = @rm
DOXYGEN = @doxygen
TARGETS = nltool nlwav
@ -160,7 +161,7 @@ depend: .depend
# Special targets
#-------------------------------------------------
.PHONY: clang
.PHONY: clang doc
clang:
$(MAKE) CC=clang++ LD=clang++ CEXTRAFLAGS="-Weverything -Werror -Wno-padded -Wno-weak-vtables -Wno-missing-variable-declarations -Wconversion -Wno-c++98-compat -Wno-float-equal -Wno-cast-align -Wno-global-constructors -Wno-c++98-compat-pedantic -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-weak-template-vtables"
@ -168,6 +169,9 @@ clang:
# FIX: -Wno-weak-vtables -Wno-missing-variable-declarations -Wno-conversion -Wno-exit-time-destructors
#
doc:
$(DOXYGEN) doxygen.conf
#-------------------------------------------------
# generic rules
#-------------------------------------------------

View File

@ -65,7 +65,7 @@ mempool::~mempool()
{
if (b.m_num_alloc != 0)
{
fprintf(stderr, "Found block with %d dangling allocations\n", (int) b.m_num_alloc);
fprintf(stderr, "Found block with %d dangling allocations\n", static_cast<int>(b.m_num_alloc));
}
delete b.data;
}