You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @caiiiycuk,
The parameter in question is a const char*, but it can also accept other pointer types, such as struct timeval*. However, it appears that this generates a warning on Windows builds. This issue was addressed in commit 0d09382, as there’s no harm in casting to char* and void* since they are the only pointer types that are safe to cast.
Activity
caiiiycuk commentedon Aug 30, 2024
Quick workaround, just defined this in cmake:
Theldus commentedon Sep 2, 2024
Hi @caiiiycuk,
The parameter in question is a
const char*, but it can also accept other pointer types, such asstruct timeval*. However, it appears that this generates a warning on Windows builds. This issue was addressed in commit 0d09382, as there’s no harm in casting tochar*andvoid*since they are the only pointer types that are safe to cast.