On Sun, 12 Aug 2018 at 15:59, zerons wrote: > Should gcc give it an error to prevent a structure from converting to > char* in functions printf/fprintf?
Your question is inappropriate on this mailing list, please use gcc-help next time. See https://gcc.gnu.org/lists.html Did you try compiling with warnings? If not, why not. -Werror=format will give you an error.