diff options
author | 2016-08-06 19:22:17 +0200 | |
---|---|---|
committer | 2016-08-06 19:22:29 +0200 | |
commit | 7a7c123d1e47bd5f6df8d60c89ca46f40bdb351f (patch) | |
tree | 7d0e4c9640dbfbe16446f8f0d37c4997115f9c1d /src | |
parent | 20a584b348c0e54a80f6fc6d3041788396e930ff (diff) |
Added doc target to netlist makefile. Removed old style cast. (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/netlist/build/makefile | 6 | ||||
-rw-r--r-- | src/lib/netlist/plib/palloc.cpp | 2 |
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; } |