diff --git a/examples/hitmaps_hms.C b/examples/hitmaps_hms.C
index 0874bc38ec8b21fcb094fde17b4fdebe3eee160d..a43aa5097a9d18e6c3faee9e402694e990b5a239 100644
--- a/examples/hitmaps_hms.C
+++ b/examples/hitmaps_hms.C
@@ -25,7 +25,7 @@
   h[15] = hnegadc4;
   
   for(Int_t ipad=1;ipad<=8;ipad++) {
-    TPad *pt = c1->cd(ipad);
+    c1->cd(ipad);
     Int_t ihp = 2*(ipad-1);
     Int_t ihn = ihp+1;
     h[ihp]->SetFillColor(kGreen);
diff --git a/examples/hitmaps_sos.C b/examples/hitmaps_sos.C
index 2e7f220bbfd77141423f860348b00a76bcd0da21..0e6a02bf44a09f78a8649053b5595f7f63dd935f 100644
--- a/examples/hitmaps_sos.C
+++ b/examples/hitmaps_sos.C
@@ -25,7 +25,7 @@
   h[15] = snegadc4;
   
   for(Int_t ipad=1;ipad<=8;ipad++) {
-    TPad *pt = c1->cd(ipad);
+    c1->cd(ipad);
     Int_t ihp = 2*(ipad-1);
     Int_t ihn = ihp+1;
     h[ihp]->SetFillColor(kGreen);