svn commit: r1936842 - apr/apr/trunk/strings
[email protected] Mon, 03 Aug 2026 16:13:10 -0000
| Newsgroups | gmane.comp.apache.apr.cvs |
|---|---|
| Message-ID | <178577359042.1903215.778861873193790948@svn03-he-fi> |
Author: jorton
Date: Mon Aug 3 16:13:10 2026
New Revision: 1936842
Log:
* strings/apr_fnmatch.c (apr_match_glob): Avoid GCC warnings on Fedora
44 for strrchr(); no functional change.
strings/apr_fnmatch.c: In function 'apr_match_glob':
strings/apr_fnmatch.c:456:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
456 | char *idx = strrchr(pattern, '/');
| ^~~~~~~
strings/apr_fnmatch.c:459:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
459 | idx = strrchr(pattern, '\\');
| ^
Modified:
apr/apr/trunk/strings/apr_fnmatch.c
Modified: apr/apr/trunk/strings/apr_fnmatch.c
==============================================================================
--- apr/apr/trunk/strings/apr_fnmatch.c Mon Aug 3 16:06:14 2026 (r1936841)
+++ apr/apr/trunk/strings/apr_fnmatch.c Mon Aug 3 16:13:10 2026 (r1936842)
@@ -453,7 +453,7 @@ APR_DECLARE(apr_status_t) apr_match_glob
* we really need apr_filepath_basename, which will be coming as soon as
* I get to it. rbb
*/
- char *idx = strrchr(pattern, '/');
+ const char *idx = strrchr(pattern, '/');
if (idx == NULL) {
idx = strrchr(pattern, '\\');