[ROOT] How to avoid this warning "unreachable code at beginning of switch statement"

From: Dongwook Jang (dwjang@fnal.gov)
Date: Wed Feb 19 2003 - 23:43:25 MET


Hi,

I have a very simple script which always generates the following warning:

/misc/home.rutpc7/dwjang/work/FakeRate/temp/filewJ9bup.C: In function 
`G___test_5_23__FP8G__valuePCcP8G__parami':
/misc/home.rutpc7/dwjang/work/FakeRate/temp/filewJ9bup.C:92: warning: 
unreachable code at beginning of switch statement

This is the contents of my test script:


#include <iostream>
#include "TString.h"

int test (TString tName = "abc", Int_t size = 14, Int_t max = 0){

   cout << "check : " << tName << ", " << size << ", " << max << endl;

   return 0;
}

This script runs OK, but that warning makes me annoying.
I'm using root version 3.03/07 with kai compiler.

-- 

Best regards,
Dongwook Jang.
phone :	630-840-2118 (office B0 170-I) 630-840-6315 (FAX)



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET