Skip to content

Eliminate many warnings about unused definitions in PSA example programs#1407

Open
jafingerhut wants to merge 2 commits into
p4lang:mainfrom
jafingerhut:eliminate-most-unused-warnings-compiling-example-psa-programs
Open

Eliminate many warnings about unused definitions in PSA example programs#1407
jafingerhut wants to merge 2 commits into
p4lang:mainfrom
jafingerhut:eliminate-most-unused-warnings-compiling-example-psa-programs

Conversation

@jafingerhut
Copy link
Copy Markdown
Collaborator

There are many, many warnings about unused definitions in the psa.p4 include file when compiling the PSA example programs, due to a change made in p4c some time in the last year or two. Add @noWarn("unused") annotations to many definitions in the psa.p4 include file to prevent such warnings, since it is common for many definitions in an architecture include file to be unused by P4 programs.

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant