Skip to content

Commit

Permalink
Fix compliation with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Feb 25, 2024
1 parent 3feb92d commit aa1f400
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pdf2printable_mad.o: pdf2printable.cpp
baselinify_mad.o: baselinify.cpp
$(CXX) -c -DMADNESS=1 $(CXXFLAGS) $^ -o $@

# Silly clang
json11.o: json11.cpp
$(CXX) -c $(CXXFLAGS) -Wno-unqualified-std-cast-call $<

%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $<

Expand Down
4 changes: 4 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ all: test
test.o: test.cpp
$(CXX) -c $(TEST_INCLUDES) $(CXXFLAGS) $^

# Silly clang
json11.o: json11.cpp
$(CXX) -c $(CXXFLAGS) -Wno-unqualified-std-cast-call $<

%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $<

Expand Down

0 comments on commit aa1f400

Please sign in to comment.