|
foxmuldr
Tomato Guru
    
USA
435 Posts |
Posted - Nov 04 2025 : 2:52:25 PM
|
I've just started using Code Inspection today, and there are some aspects I have questions on.
1. I have an [#include "..\libsodium\include\sodium.h"] include file, which is used multiple places in my source file. But I see the message pop up: "Included header ..\libsodium\include\sodium.h is not used directly". What does that mean? The sodium.h file only has lots of #include files within, so does it mean that there's no direct content in my source file that references things explicitly defined there in the sodium.h file, and not in the multiple #include files it contains?
2. I have a [crypto_kx_PUBLICKEYBYTES] value that is declared in one of the libsodium files, and when I use that in a local variable I've declared to allocate the correct number of bytes I see the message: "Warning: no header providing 'crypto-kx-PUBLICKEYBYTES' is directly included". What does that mean? Because it's buried inside of a sodium.h include, or even another level below that?
3. I have a declaration: [static LRESULT CALLBACK wndProc_function(HWND hwnd, UINT msg, WPARAM wParam, LPARAM);] and I get the message: "Warning: no header providing 'LRESULT' is directly included", and "Warning: no header providing 'WPARAM' is directly included", and the same for LPARAM. What does that mean?
There are a multitude of those similar messages on very common Windows values. Is there a way to turn that warning off? I tried to look for it, but I couldn't see which one it related to by description.
-- Rick C. Hodgin
|
|