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

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Feb 20 2003 - 19:19:59 MET


Hi,

I cannot reproduce this problem when using ROOT with the KAI compiler.

Are you sure that you do not execute some piece of code in your
rootlogon.C file ?

Rene Brun

Dongwook Jang wrote:
> 
> 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