You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: