-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler warnings in OSAL #298
Comments
Specific issues:
|
Fix warnings that are triggered by compiling the OSAL coverage unit test with strict settings. - The OS_FPUExcAttachHandler function needs to be prototyped as accepting a function pointer (not void*) - Const-Correctness on OS_ModuleLoad_Impl() - Use void* instead of char* for buffer pointer as the specific type is not known - Cast the function passed into taskSpawn on VxWorks
Fix warnings that are triggered by compiling the OSAL coverage unit test with strict settings. - The OS_FPUExcAttachHandler function needs to be prototyped as accepting a function pointer (not void*) - Const-Correctness on OS_ModuleLoad_Impl() - Use void* instead of char* for buffer pointer as the specific type is not known - Cast the function passed into taskSpawn on VxWorks
Additional compiler warning fixes for the UT code itself. This is committed separately from the changes that affect the OSAL FSW code.
Fix warnings that are triggered by compiling the OSAL coverage unit test with strict settings. - The OS_FPUExcAttachHandler function needs to be prototyped as accepting a function pointer (not void*) - Const-Correctness on OS_ModuleLoad_Impl() - Use void* instead of char* for buffer pointer as the specific type is not known - Cast the function passed into taskSpawn on VxWorks
Additional compiler warning fixes for the UT code itself. This is committed separately from the changes that affect the OSAL FSW code.
Describe the bug
Some warnings still get triggered when building the coverage tests with high strictness flags, as they exercise some API calls that are not even used by the FSW code. So even though the FSW itself builds clean, when the coverage test is added it is no longer clean due to these issues.
To Reproduce
Build OSAL coverage tests with warnings/strictness flags, at least:
-Wall -Werror -std=c99 -pedantic -Wstrict-prototypes -Wcast-align -Wwrite-strings
Expected behavior
Should build warning free.
System observed on:
Ubuntu 18.04 LTS, 64 bit.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: