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
Describe the bug
When using strict aliasing in combination with tests (i.e. ENABLE_UNIT_TESTS=true), additional aliasing warnings are produced by GCC 10.3.
To Reproduce
Build CFE with tests enabled along with strict aliasing compiler settings (-O3 -fstrict-aliasing -Wstrict-aliasing=2), build will fail with errors such as:
Additional context
Most of these are related to (void**) casts, which is easily resolved by making another local void* variable to temporarily hold the pointer.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
Use an actual `void*` value when invoking functions
that output an opaque pointer value. If necessary
the value of this pointer can then be assigned to
the real pointer type to dereference.
Describe the bug
When using strict aliasing in combination with tests (i.e. ENABLE_UNIT_TESTS=true), additional aliasing warnings are produced by GCC 10.3.
To Reproduce
Build CFE with tests enabled along with strict aliasing compiler settings (
-O3 -fstrict-aliasing -Wstrict-aliasing=2
), build will fail with errors such as:Expected behavior
Should build cleanly
System observed on:
Ubuntu 21.04 (w/gcc 10.3)
Additional context
Most of these are related to
(void**)
casts, which is easily resolved by making another localvoid*
variable to temporarily hold the pointer.Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: