Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #871688

api_game_methods.c: Returning NULLs as ints

Added by Marko Lindqvist about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
General
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

From emscripten build:

../../../../src/common/scriptcore/api_game_methods.c:199:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~
../../../../src/common/scriptcore/api_game_methods.c:299:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~
~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~
../../../../src/common/scriptcore/api_game_methods.c:310:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~
~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~
../../../../src/common/scriptcore/api_game_methods.c:321:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~
~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~
../../../../src/common/scriptcore/api_game_methods.c:332:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~
~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~
../../../../src/common/scriptcore/api_game_methods.c:343:28: warning: incompatible pointer to integer conversion returning 'void ' from a function with result type 'unsigned int' [-Wint-conversion]
LUASCRIPT_CHECK_STATE(L, NULL);
^~
~
/work/misc/emsdk/upstream/emscripten/system/include/libc/locale.h:13:14: note: expanded from macro 'NULL'
#define NULL ((void
)0)
^~~~~~~~
../../../../src/common/scriptcore/luascript.h:119:35: note: expanded from macro 'LUASCRIPT_CHECK_STATE'
return LUASCRIPT_ASSERT_CAT(, VA_ARGS); \
^~~~~~~~~
../../../../src/common/scriptcore/luascript.h:102:50: note: expanded from macro 'LUASCRIPT_ASSERT_CAT'
#define LUASCRIPT_ASSERT_CAT(str1, str2) str1 ## str2
^~~~
6 warnings generated.

History

#1 Updated by Marko Lindqvist about 1 year ago

  • Subject changed from api_game_methods(): Returning NULLs as ints to api_game_methods.c: Returning NULLs as ints

#3 Updated by Marko Lindqvist about 1 year ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF