summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/netlist/build/makefile6
-rw-r--r--src/lib/netlist/plib/palloc.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/netlist/build/makefile b/src/lib/netlist/build/makefile
index e017e8ef35d..8f11a68b6bd 100644
--- a/src/lib/netlist/build/makefile
+++ b/src/lib/netlist/build/makefile
@@ -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
#-------------------------------------------------
diff --git a/src/lib/netlist/plib/palloc.cpp b/src/lib/netlist/plib/palloc.cpp
index be987b5014b..b90960f953e 100644
--- a/src/lib/netlist/plib/palloc.cpp
+++ b/src/lib/netlist/plib/palloc.cpp
@@ -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;
}