diff --git a/test/RootIDE/TGRootIDE.cxx b/test/RootIDE/TGRootIDE.cxx
index a5d3072e8dfac3a46a28cf5bee077d22e2773bed..2b8ab8d19c0f6893d5f666fb5f5daeff52c61518 100755
--- a/test/RootIDE/TGRootIDE.cxx
+++ b/test/RootIDE/TGRootIDE.cxx
@@ -1077,12 +1077,10 @@ Bool_t TGRootIDE::HandleKey(Event_t *event)
    // Keyboard event handler.
 
    char   input[10];
-   Int_t  n;
    UInt_t keysym;
 
    if (event->fType == kGKeyPress) {
       gVirtualX->LookupString(event, input, sizeof(input), keysym);
-      n = strlen(input);
 
       switch ((EKeySym)keysym) {   // ignore these keys
          case kKey_Shift:
diff --git a/test/RootShower/MyDetector.cxx b/test/RootShower/MyDetector.cxx
index 0b3f24c811856abe27f9587d6ddbaf2085989339..9d37768f7d3ba529674f66a0caa64c08275e311c 100644
--- a/test/RootShower/MyDetector.cxx
+++ b/test/RootShower/MyDetector.cxx
@@ -43,13 +43,9 @@ void MyDetector::Init()
    Int_t           i;
    Double_t        x;
    TGeoMaterial    *material;
-   TGeoMaterial    *iron;
    TGeoMaterial    *lead;
    TGeoMaterial    *polystyrene;
-   TGeoMaterial    *bgo;
-   TGeoMaterial    *csi;
    TGeoMaterial    *nai;
-   TGeoMaterial    *al;
    TGeoMedium      *scintillator[4];
    TGeoMedium      *discriminator;
    TGeoMedium      *calorimeter;
@@ -78,13 +74,13 @@ void MyDetector::Init()
    trans[4] = new TGeoTranslation(0., 36.0, 0.);
    trans[5] = new TGeoTranslation(0., 60.0, 0.);
 
-   iron = new TGeoMaterial("Iron",55.85f,26,7.87f,1.76f,16.7598f);
+   new TGeoMaterial("Iron",55.85f,26,7.87f,1.76f,16.7598f);
    lead = new TGeoMaterial("Lead",207.2f,82,11.35f,0.56f,17.0925f);
    polystyrene = new TGeoMaterial("Polystyrene",13.01f,7,1.032f,42.4f,79.36f);
-   bgo = new TGeoMaterial("BGO",175.92f,74,7.1f,1.12f,22.11f);
-   csi = new TGeoMaterial("CsI",129.90f,54,4.53f,1.85f,36.8653f);
+   new TGeoMaterial("BGO",175.92f,74,7.1f,1.12f,22.11f);
+   new TGeoMaterial("CsI",129.90f,54,4.53f,1.85f,36.8653f);
    nai = new TGeoMaterial("NaI",117.10f,50,3.67f,2.59f,41.1444f);
-   al = new TGeoMaterial("Al",26.981539f,13,2.7f,8.9f,39.407407f);
+   new TGeoMaterial("Al",26.981539f,13,2.7f,8.9f,39.407407f);
 
    scintillator[0] = new TGeoMedium("SCINT0",1, polystyrene);
    discriminator   = new TGeoMedium("DISCR", 2, lead);
diff --git a/test/RootShower/RootShower.cxx b/test/RootShower/RootShower.cxx
index b8063b44993a89a2de298ae4bd82cfb8941b2b16..699648cbf923cfc89020d9a7d4b12fb2e583bfe3 100644
--- a/test/RootShower/RootShower.cxx
+++ b/test/RootShower/RootShower.cxx
@@ -1017,7 +1017,7 @@ void RootShower::OnShowerProduce()
 {
    // Initialize and generate one event.
 
-   Int_t i, j, gifindex;
+   Int_t i, j;
    fStatusBar->SetText("",1);
 
    SetWindowName("Root Shower Event Display");
@@ -1034,7 +1034,6 @@ void RootShower::OnShowerProduce()
    fHisto_dEdX->Reset();
    Produce();
    Interrupt(kFALSE);
-   gifindex = 0;
    for (i=0;i<=fEvent->GetTotal();i++) {
       gSystem->ProcessEvents();  // handle GUI events
       if (IsInterrupted()) break;
@@ -1333,12 +1332,10 @@ Bool_t RootShower::HandleKey(Event_t *event)
    // Handle keyboard events.
 
    char   input[10];
-   Int_t  n;
    UInt_t keysym;
 
    if (event->fType == kGKeyPress) {
       gVirtualX->LookupString(event, input, sizeof(input), keysym);
-      n = strlen(input);
 
       switch ((EKeySym)keysym) {   // ignore these keys
          case kKey_Shift:
diff --git a/test/periodic/NdbMTReactionXS.cxx b/test/periodic/NdbMTReactionXS.cxx
index 76347455a7bbfc0314925994de3da8a6dab2e736..95d37f337eb51ae02f821040d5e26c307af97815 100644
--- a/test/periodic/NdbMTReactionXS.cxx
+++ b/test/periodic/NdbMTReactionXS.cxx
@@ -11,8 +11,6 @@ Bool_t
 NdbMTReactionXS::LoadENDF( char *filename )
 {
 	NdbEndfIO	endf(filename,TENDF_READ);
-	Int_t		za;
-	Float_t		awr;
 	Bool_t		error;
 
 	if (!endf.IsOpen()) return kTRUE;
@@ -20,13 +18,13 @@ NdbMTReactionXS::LoadENDF( char *filename )
 	minxs = MAX_REAL;
 	maxxs = -MAX_REAL;
 
-	endf.FindMFMT(3,MT());			// Find total cross section
-	za  = (int)endf.ReadReal(&error);	// ??
-	awr = endf.ReadReal(&error);
+	endf.FindMFMT(3,MT());		// Find total cross section
+	      endf.ReadReal(&error);	// ??
+	      endf.ReadReal(&error);
 	      endf.ReadLine();
 	QM  = endf.ReadReal(&error);
 	QI  = endf.ReadReal(&error);
-	     endf.ReadInt(&error);     // Skip number
+	      endf.ReadInt(&error);     // Skip number
 
 	LR = endf.ReadInt(&error); if (error) return error;
 	NR = endf.ReadInt(&error); if (error) return error;
diff --git a/test/rhtml/rhtml.cxx b/test/rhtml/rhtml.cxx
index 2e7734259e6c28c726f0cd7f5d9e3e6f01583219..646bd1a1b9cbf0ed29d054b9a696d1b6010f078b 100644
--- a/test/rhtml/rhtml.cxx
+++ b/test/rhtml/rhtml.cxx
@@ -27,6 +27,7 @@
 #include "TSocket.h"
 #include "Riostream.h"
 #include "rhtml.h"
+#include <stdlib.h>
 
 #ifdef WIN32
 #include "TWin32SplashThread.h"