Skip to content

ds4_server: silence the warning#312

Open
alantsev wants to merge 1 commit into
antirez:mainfrom
alantsev:ds4_server_warning
Open

ds4_server: silence the warning#312
alantsev wants to merge 1 commit into
antirez:mainfrom
alantsev:ds4_server_warning

Conversation

@alantsev
Copy link
Copy Markdown
Contributor

to silence the warning

ds4_server.c: In function ‘stop_list_find_from’:
ds4_server.c:962:19: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  962 |         char *p = strstr(text + from, stops->v[i]);
      |                   ^~~~~~
In file included from tests/ds4_test.c:3:
tests/../ds4_server.c: In function ‘stop_list_find_from’:
tests/../ds4_server.c:962:19: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  962 |         char *p = strstr(text + from, stops->v[i]);
      |                   ^~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant