mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
albumart: fix warning with GCC16
apps/recorder/albumart.c:68:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 68 | sep = strrchr(fullpath, '/'); | ^ Change-Id: Ifd25623c8fa649302e44421316671aec2de9f037
This commit is contained in:
parent
4ffd098ac9
commit
eb6746c1d6
1 changed files with 2 additions and 2 deletions
|
|
@ -56,9 +56,9 @@
|
|||
* The function return parameter is a pointer to the filename
|
||||
* inside the given fullpath.
|
||||
*/
|
||||
static char* strip_filename(char* buf, int buf_size, const char* fullpath)
|
||||
static const char* strip_filename(char* buf, int buf_size, const char* fullpath)
|
||||
{
|
||||
char* sep;
|
||||
const char* sep;
|
||||
int len;
|
||||
|
||||
if (!buf || buf_size <= 0 || !fullpath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue