2025-01-16 06:40 AM - last edited on 2025-01-16 06:46 AM by KnarfB
The correct declaration should be:
void initialise_monitor_handles( void )
This is not very important... but it generates warnings
2025-01-16 06:55 AM - edited 2025-01-16 06:57 AM
Please see the community guidelines for how to properly post source code - not as screenshots:
How to write your question to maximize your chances to find a solution
@JVERN.18 wrote:it generates warnings
What warnings, exactly?
And what build tools & version are you using?
2025-01-16 07:23 AM
Sorry for the scrrenshots, I'll be more careful next time...
The compiler is LLVM/Clang and the warning is "a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"
This is not a very important warning, and I see that GNU does not see a problem, but frankly, we're not in the 1980s anymore...
2025-01-16 07:34 AM
@JVERN.18 wrote:the warning is "a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"...
So just changing the declaration to add the 'void' wouldn't fix that warning - you'd still need to add a prototype?
2025-01-16 08:11 AM
Yes, just adding "void" is enough to make the compiler happy (and me too)... and no, I absolutely do not need this function (void, by the way).