| Time |
Nick |
Message |
| 00:23 |
|
rubenwardy joined #luanti-dev |
| 04:00 |
|
MTDiscord joined #luanti-dev |
| 05:05 |
|
sugarbeet joined #luanti-dev |
| 05:31 |
|
YuGiOhJCJ joined #luanti-dev |
| 05:46 |
|
YuGiOhJCJ joined #luanti-dev |
| 08:35 |
|
SoruCoder joined #luanti-dev |
| 09:23 |
|
YuGiOhJCJ joined #luanti-dev |
| 09:49 |
|
pgimeno joined #luanti-dev |
| 09:58 |
|
dv^_^ joined #luanti-dev |
| 11:08 |
|
calculon joined #luanti-dev |
| 12:43 |
|
turtleman joined #luanti-dev |
| 14:28 |
|
Panquesito7 joined #luanti-dev |
| 14:50 |
|
MisterE1230 joined #luanti-dev |
| 18:28 |
|
Mantar joined #luanti-dev |
| 19:09 |
|
crazylad joined #luanti-dev |
| 19:19 |
sfan5 |
Krock: oh indeed I get lots of -Wnull-dereference warnings when compiling with lto |
| 19:39 |
Krock |
hm? I get them without LTO |
| 19:39 |
sfan5 |
didn't test without lto |
| 19:39 |
MTDiscord |
<jordan4ibanez> Yeah just compiling the game there's warnings all over the place |
| 19:40 |
MTDiscord |
<jordan4ibanez> I thought that was just accepted lol |
| 19:40 |
Krock |
I followed a few of them, but there seems to be some false-positives, which is not helpful. |
| 19:41 |
MTDiscord |
<jordan4ibanez> Are they initialized or set to null initially? |
| 19:42 |
Krock |
array is first resized to 8 slots and then warns about accessing the data pointer which is guaranteed to exist (as far as I can tell) |
| 19:42 |
Krock |
s/array/vector/ |
| 19:45 |
MTDiscord |
<jordan4ibanez> Very simple, assert not null |
| 19:45 |
MTDiscord |
<jordan4ibanez> It may fail if the system runs out of memory |
| 19:45 |
MTDiscord |
<jordan4ibanez> Well, there are a few ways for that to fail but that can fail |
| 20:08 |
MTDiscord |
<luatic> jordan: bad alloc throws in C++ |
| 20:08 |
MTDiscord |
<luatic> out of curiosity, can you share the exact warning Krock? |
| 20:12 |
Krock |
@luatic https://pastebin.com/raw/uNfXzjgP the first one is repeated a lot |
| 20:13 |
Krock |
cross-reference to https://irc.luanti.org/luanti-dev/2026-08-22#i_6338437 |
| 20:34 |
sfan5 |
I didn't save the logs but I did get a bunch of warnings that would imply `this` to be null. not sure if that makes sense |
| 21:03 |
MTDiscord |
<jordan4ibanez> Well I added cpp if (edges == nullptr) { return; } to the getEdges method and that removed the error |
| 21:04 |
MTDiscord |
<jordan4ibanez> Probably should throw but that was a test, this is how I satisfied gcc in fortran C code |
| 21:06 |
MTDiscord |
<jordan4ibanez> If you don't want a wall of suggestions for possible crash points, you must treat all those warnings as rust results |
| 21:07 |
MTDiscord |
<jordan4ibanez> And it's probably good to throw in all those points because there may be ghost bugs that no one has discovered yet |
| 21:34 |
|
BuckarooBanzai3 joined #luanti-dev |
| 21:52 |
|
BuckarooBanzai0 joined #luanti-dev |
| 22:00 |
|
BuckarooBanzai joined #luanti-dev |
| 22:03 |
|
BuckarooBanzai joined #luanti-dev |
| 22:33 |
|
panwolfram joined #luanti-dev |
| 23:16 |
|
book` joined #luanti-dev |