@Saran Narayan Could you please look into one of your commits pertaining to "check_overlaps.c" . The variable check_plot seems to be uninitialized in some cases where if() stands false, which is breaking the code. Please rectify the snippet. Cheers !
I think I found the derp I did https://hastebin.com/ligoxiwuya
but the error you say is different
I am wondering why the error never showed up to me while I was building
What flags do you use with cmake ?
no flags :/ just cmake ..
different versions of gcc/llvm and different compilation settings produce different warnings (which we turn into failures in our build)
best to just fix them as you find them and not worry about it -- they're typically trivial to resolve
only way to be really sure is to make sure one has the very latest version of the compiler and compiles both with and without optimization enabled
and then do it all over again with the other compiler (gcc/llvm) ;)
four full builds is best automated
welp that is too much work
that's why it's best to just fix them as we find them ;)
yeah :) will commit it
but still not sure what the problem is :D
commit it, lets see
svn up :)
Works :simple_smile:
great. Thank you for testing :)
@starseeker error: missing field 'cflag' initializer [-Werror,-Wmissing-field-initializers]
struct _ged_ls_flags ls_flags = {0};
Could you help me on this . :)
@Shubham Rathore does r71296 fix it?
Ah... initialization. Yes it does ! :)
i can't build the code, because log_overlaps
(and possibly others) is defined in both libged/check_overlaps.c
and libged/check/check_overlaps.c
. i don't know which one is the redundant one
oh okay on it :)
thanks ^^
BTW @Cezar getting this build error:
/home/sharan/brlcad/mod_ssh/src/libbu/hook.c: In function ‘bu_hook_list_init’: /home/sharan/brlcad/mod_ssh/src/libbu/hook.c:42:13: error: request for implicit conversion from ‘void *’ to ‘struct bu_hook *’ not permitted in C++ [-Werror=c++-compat] hlp->hooks = bu_malloc( ^ /home/sharan/brlcad/mod_ssh/src/libbu/hook.c: In function ‘bu_hook_add’: /home/sharan/brlcad/mod_ssh/src/libbu/hook.c:56:13: error: request for implicit conversion from ‘void *’ to ‘struct bu_hook *’ not permitted in C++ [-Werror=c++-compat] hlp->hooks = bu_realloc( ^ cc1: all warnings being treated as errors
not sure why, the hooks is a void *
uh, the result of bu_malloc
is void *
and it needs to be converted to whatever the left-hand's type is (struct bu_hook
in this case)
i'm not getting this error on my compiler, so i keep forgetting to add the cast when writing code like this
sorry about that, i'll fix it
cool thank you :)
omg it is popping on many other files as well :/
lemme fix it :)
i've committed a fix now
okk lets see
now happens in redblack.c
ye, forgot about that one, fixing it now
hopefully it's fine now
yup now looks fine :)
by the way, are you able to build mged?
yep
oh okay on it :)
up now
Last updated: Nov 16 2024 at 00:47 UTC