dangerous relocation warning by gcc
i have a copy_object function which basicly just makes a copy of any object given a pointer tp it and its size and i use it in a library i made
here is the function
How is gcc’s malloc attribute used?
I’m not really sure I understand gcc
‘s malloc
attribute correctly.
How ist gcc’s malloc attribute used?
I’m not really sure I understand gcc
‘s malloc
attribute correctly.
GCC 14 “possibly dangling reference to a temporary” warning or not, depending on the function argument
In the following C++ code GCC 14 with -Wall -Wextra
flags produces a possibly dangling reference
warning for function g(), but not f(). Why?