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
0%
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 12 months ago
- Subject changed from api_game_methods(): Returning NULLs as ints to api_game_methods.c: Returning NULLs as ints
#2
Updated by Marko Lindqvist 12 months ago
- File 0042-Fix-api_game_methods.c-return-types.patch 0042-Fix-api_game_methods.c-return-types.patch added
- File 0014-Fix-api_game_methods.c-return-types.patch 0014-Fix-api_game_methods.c-return-types.patch added
- File 0010-Fix-api_game_methods.c-return-types.patch 0010-Fix-api_game_methods.c-return-types.patch added
- Status changed from New to Resolved
- Sprint/Milestone set to 2.6.3
#3
Updated by Marko Lindqvist 10 months ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist