diff options
| author | Yaakov Selkowitz <yselkowi@redhat.com> | 2025-12-17 03:10:39 +0000 |
|---|---|---|
| committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2025-12-17 03:15:03 +0000 |
| commit | 15ebc433baabd799252609e28bf79afd892b33a4 (patch) | |
| tree | c76b5ccdf0afc2d59aa9832dbbd49e42d1364e3a | |
| parent | term: mouse SGR mode: don't emit negative CSI values (diff) | |
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.
| -rw-r--r-- | notify.c | 2 | ||||
| -rw-r--r-- | osc.c | 2 | ||||
| -rw-r--r-- | tokenize.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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'; @@ -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"); |
