Paul

Results 181 comments of Paul

I also got this error message on build with gcc 12.1.1 20220730: ```c [ 45%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain-match.c.o /home/paul/FTL/src/args.c: In Funktion »cli_tick«: /home/paul/FTL/src/args.c:413:37: Error: Function could be a candidate...

> I changed the target branch for you. And thanks for changeing it

Found this thread on this: https://stackoverflow.com/questions/41712635/gcc-error-function-might-be-candidate-for-attribute-pure-if-it-is-known-to-re

Does not work: ```c [ 45%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain-match.c.o /home/paul/FTL/src/tre-regex/xmalloc.c: In Funktion »xrealloc_impl«: /home/paul/FTL/src/tre-regex/xmalloc.c:343:7: Warning: pointer "ptr" may be used after "realloc" [-Wuse-after-free] 343 | hash_table_del(xmalloc_table, ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...

> How about doing what it suggests? Does still not work... And does also throw errors like: ```c /home/paul/FTL/src/args.h:24:13: Note: previous declaration here 24 | const char *cli_bold(void) __attribute__ ((const));...

> Sure, you also need to change the attribute there (declaration), not only where you did it now (definition). [...] I'm also happy to assist you further if you want...

Ok now that i also changed the declaration i suggests const instead of pure: ```c /home/paul/FTL/src/args.c:443:36: Error: function could be a candidate for attribute »const« [-Werror=suggest-attribute=const] 443 | const char...

@DL6ER Yes that's true, the version i used is GCC 12.2.0 which has been released on 19th August 2022 so very bleeding edge. And i found a bug report which...

> @paulober This has been addressed in #1465 - would be nice if you could confirm the current `development` branch builds fine on your system. I'm going to close this...

Try to run "All commands > Delete all files from board" first. And the re-run the "Upload project command to upload all your workspace files.