-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress irrelevant gcc warning (mpls).
Modern gcc can warn about MPLS array accessed above its defined size (which is MPLS_DEPTH) in Elements switch: warning: array subscript is above array bounds [-Warray-bounds] Disabling this warning is safe, because, these statements only called for a valid array length (due to template definition is based on MPLS_DEPTH), so, supposedly over-reading code is never called. For a double safety, sanity checking is added for --promisc-mpls value (which defines MPLS_DEPTH) to be in range of 1..10.
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 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