Hi, This is problem a problem caused by the code that the KCC compiler produce (starting from perfectly valid code) and it's gcc backend on linux does not like. To work around the problem you need to compile with the '--backend -w' option. To install it for ACLiC just do: TString cmd = gSystem->GetMakeSharedLib(); cmd.ReplaceAll("KCC","KCC --backend -w "); gSystem->SetMakeSharedLib(cmd); at the start of your session. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Dongwook Jang Sent: Wednesday, February 19, 2003 4:43 PM To: roottalk Subject: [ROOT] How to avoid this warning "unreachable code at beginning of switch statement" 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