I noticed the following warnings when compiling gsl:
sfllang.c: In function 'get_day_abbrev':
sfllang.c:611:13: warning: function may return address of local variable [-Wreturn-local-addr]
return (handle_accents (abbrev));
~^~~~~~~~~~~~~~~~~~~~~~~~
sfllang.c:603:9: note: declared here
abbrev [4];
^~~~~~
sfllang.c: In function 'get_month_abbrev':
sfllang.c:653:13: warning: function may return address of local variable [-Wreturn-local-addr]
return (handle_accents (abbrev));
~^~~~~~~~~~~~~~~~~~~~~~~~
sfllang.c:644:9: note: declared here
abbrev [4];
^~~~~~
Indeed, both warnings are correct, since handle_accents just returns the buffer it's given. Thankfully, nothing in gsl itself is using these functions, but it's just a matter of time until one of them gets used. Please fix this.
I noticed the following warnings when compiling gsl:
Indeed, both warnings are correct, since handle_accents just returns the buffer it's given. Thankfully, nothing in gsl itself is using these functions, but it's just a matter of time until one of them gets used. Please fix this.