diff --git a/theories/coPset.v b/theories/coPset.v
index 1a46079ba5c5c08eb2a072d46bd00eb2ac0182a8..f6de342de50db2b5598972e84285cc3b0b8c7167 100644
--- a/theories/coPset.v
+++ b/theories/coPset.v
@@ -26,7 +26,7 @@ Fixpoint coPset_wf (t : coPset_raw) : bool :=
   | coPLeaf _ => true
   | coPNode true (coPLeaf true) (coPLeaf true) => false
   | coPNode false (coPLeaf false) (coPLeaf false) => false
-  | coPNode b l r => coPset_wf l && coPset_wf r
+  | coPNode _ l r => coPset_wf l && coPset_wf r
   end.
 Arguments coPset_wf !_ / : simpl nomatch, assert.
 
diff --git a/theories/hlist.v b/theories/hlist.v
index 86dbd4571f1ac31f5181eab64fadd4caebbb8cdf..d7f0ad921c8b6daf5920a8ad881d74136059713b 100644
--- a/theories/hlist.v
+++ b/theories/hlist.v
@@ -22,12 +22,12 @@ Definition htail {A As} (xs : hlist (tcons A As)) : hlist As :=
 Fixpoint hheads {As Bs} : hlist (tapp As Bs) → hlist As :=
   match As with
   | tnil => λ _, hnil
-  | tcons A As => λ xs, hcons (hhead xs) (hheads (htail xs))
+  | tcons _ _ => λ xs, hcons (hhead xs) (hheads (htail xs))
   end.
 Fixpoint htails {As Bs} : hlist (tapp As Bs) → hlist Bs :=
   match As with
   | tnil => id
-  | tcons A As => λ xs, htails (htail xs)
+  | tcons _ _ => λ xs, htails (htail xs)
   end.
 
 Fixpoint himpl (As : tlist) (B : Type) : Type :=