mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Fix discarded const qualifiers from string functions
This is a new warning in GCC 15 that is being promoted to an error due to the werror=true in meson.build.
This commit is contained in:
parent
6e533231b0
commit
15ebc433ba
3 changed files with 3 additions and 3 deletions
2
notify.c
2
notify.c
|
|
@ -114,7 +114,7 @@ consume_stdout(struct notification *notif, bool eof)
|
|||
while (left > 0) {
|
||||
line = data;
|
||||
size_t len = left;
|
||||
char *eol = memchr(line, '\n', left);
|
||||
char *eol = (char *)memchr(line, '\n', left);
|
||||
|
||||
if (eol != NULL) {
|
||||
*eol = '\0';
|
||||
|
|
|
|||
2
osc.c
2
osc.c
|
|
@ -513,7 +513,7 @@ osc_uri(struct terminal *term, char *string)
|
|||
key_value = strtok_r(NULL, ":", &ctx))
|
||||
{
|
||||
const char *key = key_value;
|
||||
char *operator = strchr(key_value, '=');
|
||||
char *operator = (char *)strchr(key_value, '=');
|
||||
|
||||
if (operator == NULL)
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ tokenize_cmdline(const char *cmdline, char ***argv)
|
|||
|
||||
size_t idx = 0;
|
||||
while (*p != '\0') {
|
||||
char *end = strchr(search_start, delim);
|
||||
char *end = (char *)strchr(search_start, delim);
|
||||
if (end == NULL) {
|
||||
if (delim != ' ') {
|
||||
LOG_ERR("unterminated %s quote", delim == '"' ? "double" : "single");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue