-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[meta] Add custom range start/end to sai_object_type_t and sai_api_t …
…as workaround for internal enum size (#1926) Workadound for #1925 Since SAI_OBJECT_TYPE_EXTENSIONS_MAX is declared as define, compiler warns about: error: the result of the conversion is unspecified because .129. is outside the range of type .sai_object_type_t. {aka ._sai_object_type_t.} [-Werror=conversion] when next value exceeds 7 bits, since that's enough for encode all values for sai_object_type_t. Unfortunetly #pragma GCC diagnostic ignored "-Wconversion" is not working (probably gcc bug) then workaround needs to be addressed in other way. Those custom ranges can be removed after actual SAI_OBJECT_TYPE_MAX will reach 128 value Also update sai_api_t, same issue as sai_object_type_t. This is temporary workaround.
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters