Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling in the last version of Manjaro gcc version 11.1.0 #47

Open
orderorder opened this issue Aug 11, 2021 · 1 comment
Open

Comments

@orderorder
Copy link

orderorder commented Aug 11, 2021

UI_System.cpp:238:42: error: ordered comparison of pointer with integer zero (‘SHANDLE’ {aka ‘asIScriptFunction*’} and ‘int’)
  238 |         assert( m_PushScreen->m_hOnEnter >= 0 );
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
@clort81
Copy link

clort81 commented Nov 28, 2021

similar here with gcc 11 (aarch64)

[ 84%] Building CXX object CMakeFiles/XLEngine.dir/ui/Console.cpp.o
[ 85%] Building CXX object CMakeFiles/XLEngine.dir/ui/UI_System.cpp.o
[ 85%] Building CXX object CMakeFiles/XLEngine.dir/ui/XL_Console.cpp.o
In file included from /usr/include/c++/11/cassert:44,
                 from /pr/games/XLEngine/ui/UI_System.cpp:13:
/pr/games/XLEngine/ui/UI_System.cpp: In static member function ‘static void UI_System::Update()’:
/pr/games/XLEngine/ui/UI_System.cpp:238:42: error: ordered comparison of pointer with integer zero (‘SHANDLE’ {aka ‘asIScriptFunction*’} and ‘int’)
  238 |         assert( m_PushScreen->m_hOnEnter >= 0 );
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[2]: *** [CMakeFiles/XLEngine.dir/build.make:874: CMakeFiles/XLEngine.dir/ui/UI_System.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:259: CMakeFiles/XLEngine.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants