Skip to content

Commit

Permalink
cmake: Use correct input pointer type for iconv detection
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fweimer-rh committed Nov 22, 2023
1 parent 9cff04c commit 63726d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindIconv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63726d0

Please sign in to comment.