-
Notifications
You must be signed in to change notification settings - Fork 449
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
warn on unused controls/parsers #4440
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
actionAnnotations.p4(17): [--Wwarn=unused] warning: Control test is not used; removing | ||
control test() | ||
^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
alias.p4(38): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
annotations.p4(30): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
apply-cf.p4(19): [--Wwarn=unused] warning: Control x is not used; removing | ||
control x() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
assign.p4(21): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
bitwise-and.p4(21): [--Wwarn=unused] warning: Control C is not used; removing | ||
control C(bit<1> meta) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module | ||
[--Wwarn=missing] warning: Program does not contain a main module, so P4Info's 'pkg_info' field will not be set | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
bitwise-cast.p4(19): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
bool_cast.p4(17): [--Wwarn=unused] warning: Control SetAndFwd is not used; removing | ||
control SetAndFwd() | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
bool_double_cast.p4(17): [--Wwarn=unused] warning: Control SetAndFwd is not used; removing | ||
control SetAndFwd() | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bool_to_bit_cast.p4(45): [--Wwarn=unused] warning: Control C is not used; removing | ||
control C() { | ||
^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
call.p4(17): [--Wwarn=unused] warning: Control qp is not used; removing | ||
control qp() | ||
^^ | ||
call.p4(42): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
cases.p4(31): [--Wwarn=missing] warning: SwitchCase: fallthrough with no statement | ||
c: | ||
^ | ||
cases.p4(17): [--Wwarn=unused] warning: Control ctrl is not used; removing | ||
control ctrl() { | ||
^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
cast.p4(17): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
constants.p4(17): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
constructor_cast.p4(21): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
crash-typechecker.p4(11): [--Wwarn=unused] warning: Control x is not used; removing | ||
control x() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
direct-call.p4(20): [--Wwarn=unused] warning: Control d is not used; removing | ||
control d() { | ||
^ | ||
direct-call.p4(16): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
direct-call1.p4(7): [--Wwarn=unused] warning: Parser q is not used; removing | ||
parser q() { | ||
^ | ||
direct-call1.p4(1): [--Wwarn=unused] warning: Parser p is not used; removing | ||
parser p() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
direct-call2.p4(7): [--Wwarn=unused] warning: Parser q is not used; removing | ||
parser q() { | ||
^ | ||
direct-call2.p4(1): [--Wwarn=unused] warning: Parser p is not used; removing | ||
parser p() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
entries-prio.p4(12): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(in Headers h) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
enum.p4(24): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
expression.p4(17): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extern2.p4(22): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extern3.p4(23): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
generic.p4(17): [--Wwarn=unused] warning: 'T' is unused | ||
extern Crc16<T> | ||
^ | ||
generic.p4(27): [--Wwarn=unused] warning: Control q is not used; removing | ||
control q<S>(in S dt) | ||
^ | ||
generic.p4(41): [--Wwarn=unused] warning: Control z is not used; removing | ||
control z<D1, T1>(X<D1> x, in D1 v, in T1 t) | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
hashext.p4(36): [--Wwarn=unused] warning: Control test is not used; removing | ||
control test(inout hdrs hdr) { | ||
^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
hashext2.p4(33): [--Wwarn=unused] warning: Control test is not used; removing | ||
control test(inout hdrs hdr) { | ||
^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
header.p4(42): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
initializer.p4(19): [--Wwarn=unused] warning: Control ingress is not used; removing | ||
control ingress(out bit<32> field_d_32) { | ||
^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
interface2.p4(21): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
issue1304.p4(32): [--Wwarn=unused] warning: Control MyVerifyChecksum is not used; removing | ||
control MyVerifyChecksum(inout my_packet hdr, inout my_metadata meta) { | ||
^^^^^^^^^^^^^^^^ | ||
issue1304.p4(54): [--Wwarn=unused] warning: Control MyComputeChecksum is not used; removing | ||
control MyComputeChecksum(inout my_packet p, inout my_metadata m) { | ||
^^^^^^^^^^^^^^^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue1334.p4(14): [--Wwarn=unused] warning: Control d is not used; removing | ||
control d(out bit<32> x)(bit<32> a) { | ||
^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
issue1524.p4(36): [--Wwarn=unused] warning: Parser ParserImpl is not used; removing | ||
parser ParserImpl(packet_in packet, | ||
^^^^^^^^^^ | ||
issue1524.p4(50): [--Wwarn=unused] warning: Control bar is not used; removing | ||
control bar() { | ||
^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module | ||
[--Wwarn=missing] warning: Program does not contain a main module, so P4Info's 'pkg_info' field will not be set | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue1586.p4(3): [--Wwarn=unused] warning: Control cIngress is not used; removing | ||
control cIngress() | ||
^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue1914-1.p4(83): [--Wwarn=unused] warning: Control verifyChecksum is not used; removing | ||
control verifyChecksum(inout headers_t hdr, inout metadata_t meta) { | ||
^^^^^^^^^^^^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue1914-2.p4(83): [--Wwarn=unused] warning: Control verifyChecksum is not used; removing | ||
control verifyChecksum(inout headers_t hdr, inout metadata_t meta) { | ||
^^^^^^^^^^^^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue1914.p4(83): [--Wwarn=unused] warning: Control verifyChecksum is not used; removing | ||
control verifyChecksum(inout headers_t hdr, inout metadata_t meta) { | ||
^^^^^^^^^^^^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue1989-bmv2.p4(38): [--Wwarn=unused] warning: Control ingress_stub is not used; removing | ||
control ingress_stub(inout headers hdr, inout test_metadata_t meta, | ||
^^^^^^^^^^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue1997.p4(23): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(in hdr h, inout standard_metadata_t standard_meta) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2036-3.p4(7): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2037.p4(2): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spec-ex09.p4(24): [--Wwarn=unused] warning: Control p is not used; removing | ||
control p() | ||
^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2126.p4(1): [--Wwarn=unused] warning: Parser p is not used; removing | ||
parser p() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2265-1.p4(3): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2265.p4(7): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c<T>(inout T data) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issue2514.p4(23): [--Wwarn=unused] warning: Parser prs is not used; removing | ||
parser prs(inout my_headers_t hdr) { | ||
^^^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
issue2735.p4(8): [--Wwarn=unused] warning: Control SnvsIngress is not used; removing | ||
control SnvsIngress(out Mac_entry b0) { | ||
^^^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module | ||
[--Wwarn=missing] warning: Program does not contain a main module, so P4Info's 'pkg_info' field will not be set | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue2905.p4(3): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3056.p4(6): [--Wwarn=unused] warning: Control compute is not used; removing | ||
control compute() { | ||
^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3246-1.p4(8): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(out bit<8> result) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3307.p4(6): [--Wwarn=unused] warning: Parser MyParser is not used; removing | ||
parser MyParser(t tt) { | ||
^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3333.p4(2): [--Wwarn=unused] warning: Parser MyParser1 is not used; removing | ||
parser MyParser1(in myenum a) { | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3343.p4(1): [--Wwarn=unused] warning: Parser MyParser1 is not used; removing | ||
parser MyParser1(in bit<6> ttt) { | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
issue3379-1.p4(14): [--Wwarn=unused] warning: t4: unused instance | ||
mypackaget<bit>(MyParser1()) t4; | ||
^^ | ||
issue3379-1.p4(3): [--Wwarn=unused] warning: Parser MyParser1 is not used; removing | ||
parser MyParser1(in bit tt) { | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
issue3379.p4(15): [--Wwarn=unused] warning: t4: unused instance | ||
mypackaget(MyParser1()) t4; | ||
^^ | ||
issue3379.p4(3): [--Wwarn=unused] warning: Parser MyParser1 is not used; removing | ||
parser MyParser1(in bit tt) { | ||
^^^^^^^^^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
issue344.p4(24): [--Wwarn=unused] warning: c: unused instance | ||
top(C<_>()) c; | ||
^ | ||
issue344.p4(17): [--Wwarn=unused] warning: Control C is not used; removing | ||
control C<H>() { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue361-bmv2.p4(46): [--Wwarn=unused] warning: Control C is not used; removing | ||
control C() { | ||
^ | ||
[--Wwarn=parser-transition] warning: SelectCase: unreachable case |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
issue3619.p4(4): [--Wwarn=missing] warning: SwitchCase: fallthrough with no statement | ||
default: | ||
^^^^^^^ | ||
issue3619.p4(1): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(in bit<4> v) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3623-1.p4(5): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(in e v) | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3623.p4(5): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c(in bit<4> v) { | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3671-1.p4(10): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
issue3671.p4(11): [--Wwarn=unused] warning: Control c is not used; removing | ||
control c() | ||
^ | ||
[--Wwarn=missing] warning: Program does not contain a `main' module |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grg Do you know why Myparser1 is considered unused in this test program?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that is because there is no
main
declaration.