123fbalp123fb 28 Posted November 2, 2022 Share Posted November 2, 2022 (edited) Hello. I came with two warnings. Can anyone help understand? Thank you ... (g++9 and C++11) Warning - 1 pragma_messahe.hpp #if defined(BOOST_DISABLE_PRAGMA_MESSAGE) # define BOOST_PRAGMA_MESSAGE(x) #elif defined(__INTEL_COMPILER) # define BOOST_PRAGMA_MESSAGE(x) __pragma(message(__FILE__ "(" BOOST_STRINGIZE(__LINE__) "): note: " x)) #elif defined(__GNUC__) # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x))) /* 24.line */ #elif defined(_MSC_VER) # define BOOST_PRAGMA_MESSAGE(x) __pragma(message(__FILE__ "(" BOOST_STRINGIZE(__LINE__) "): note: " x)) #else # define BOOST_PRAGMA_MESSAGE(x) #endif bind.hpp BOOST_PRAGMA_MESSAGE( /* 26.line */ "The practice of declaring the Bind placeholders (_1, _2, ...) " "in the global namespace is deprecated. Please use " "<boost/bind/bind.hpp> + using namespace boost::placeholders, " "or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior." ) ############################################################ Warning - 2 regen.cpp 431.line while (true) { REGEN tmp; memset(&tmp, 0, sizeof(tmp)); /* 431.line */ if (!read_line(fp, &tmp)) break; regen.h 13.line typedef struct regen /* 13.line */ { LPREGEN prev, next; long lMapIndex; int type; int sx, sy, ex, ey; BYTE z_section; BYTE direction; . . . regen.cpp 444.line if (!bOnce) { regen = M2_NEW REGEN; memcpy(regen, &tmp, sizeof(REGEN)); /* 444.line */ } else regen = &tmp; regen.cpp 531.line while (true) { REGEN tmp; memset(&tmp, 0, sizeof(tmp)); /*531.line */ if (!read_line(fp, &tmp)) break; regen.cpp 625.line memset(&tmp, 0, sizeof(tmp)); regen.cpp 641.line memcpy(regen, &tmp, sizeof(REGEN)); Edited November 2, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
123fbalp123fb 28 Posted November 3, 2022 Author Share Posted November 3, 2022 Warning 1 i solved this problem main.cpp and #include <boost/ add above lines #define BOOST_BIND_NO_PLACEHOLDERS Any idea about Warning-2 ? Link to comment Share on other sites More sharing options...
123fbalp123fb 28 Posted November 9, 2022 Author Share Posted November 9, 2022 up Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now