24 lines
781 B
Diff
24 lines
781 B
Diff
|
commit 25a03f430f47733b215eb9f0251e25ce7bdb7ada
|
||
|
Author: Florian Weimer <fweimer@redhat.com>
|
||
|
Date: Wed Nov 22 12:57:03 2023 +0100
|
||
|
|
||
|
cmake: Use correct input pointer type for iconv detection
|
||
|
|
||
|
The iconv function expects a char ** pointer argument for the input
|
||
|
pointer. Future C compilers will flag this as an error (as it is not
|
||
|
valid C), causing this probe to fail incorrectly.
|
||
|
|
||
|
diff --git a/cmake/Modules/FindIconv.cmake b/cmake/Modules/FindIconv.cmake
|
||
|
index cf268ea0..9cd899da 100644
|
||
|
--- a/cmake/Modules/FindIconv.cmake
|
||
|
+++ b/cmake/Modules/FindIconv.cmake
|
||
|
@@ -36,7 +36,7 @@ IF(ICONV_FOUND)
|
||
|
#include <iconv.h>
|
||
|
int main(){
|
||
|
iconv_t conv = 0;
|
||
|
- const char* in = 0;
|
||
|
+ char* in = 0;
|
||
|
size_t ilen = 0;
|
||
|
char* out = 0;
|
||
|
size_t olen = 0;
|