libsupport: Fix build on gcc 11.2 #24

Merged
kallisti5 merged 1 commits from fix-gcc11 into master 2023-03-31 22:37:51 -05:00
kallisti5 commented 2023-03-07 09:37:04 -06:00 (Migrated from github.com)

Fixes build on gcc 11.2...

libs/libsupport/KeyMap.h: In instantiation of 'TYPE KeyMap<KEY, TYPE>::ValueFor(KEY, bool*) const [with KEY = BString; TYPE = int]':
protocols/purple/PurpleApp.cpp:561:45:   required from here
libs/libsupport/KeyMap.h:67:24: error: cannot convert 'std::nullptr_t' to 'int' in return
   67 |                 return NULL;
      |                        ^~~~
/boot/system/develop//etc/makefile-engine:300: recipe for target 'objects.x86_64-cc11-release/PurpleApp.o' failed
Fixes build on gcc 11.2... ``` libs/libsupport/KeyMap.h: In instantiation of 'TYPE KeyMap<KEY, TYPE>::ValueFor(KEY, bool*) const [with KEY = BString; TYPE = int]': protocols/purple/PurpleApp.cpp:561:45: required from here libs/libsupport/KeyMap.h:67:24: error: cannot convert 'std::nullptr_t' to 'int' in return 67 | return NULL; | ^~~~ /boot/system/develop//etc/makefile-engine:300: recipe for target 'objects.x86_64-cc11-release/PurpleApp.o' failed ```
Sign in to join this conversation.
No description provided.