Jump to content

[Help] Game Build Warnings


Recommended Posts

Hello. I came with two warnings. Can anyone help understand? Thank you ...  (g++9 and C++11)

Warning - 1 

spacer.png

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

spacer.png

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 by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.