Skip to content

Commit 39ae45f

Browse files
committed
Fixed no warning compile option.
1 parent 9f84045 commit 39ae45f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utility/polymorphy.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
# error "BOOST_VERSION macro undefined, even though boost/version.hpp is included (broken boost installation?)"
1414
#endif // BOOST_VERSION
1515

16-
#if BOOST_VERSION < 105600 && !defined(__BORLANDC__) && !defined(JS_DISABLE_BOOST_WARNING)
17-
# warning "Polymorphic adaptation is disabled, because the boost version is too old."
16+
#if BOOST_VERSION < 105600 && !defined(__BORLANDC__)
17+
# ifndef JS_DISABLE_BOOST_WARNING
18+
# warning "Polymorphic adaptation is disabled, because the boost version is too old."
19+
# endif
1820
# define DISABLE_POLY_JSON
1921
#else
2022
# include <boost/type_index.hpp>

0 commit comments

Comments
 (0)