compilation error about exceptions
I met some compilation error but do not know what the problem is. The code seems not use exception, but the error is about it.

    //in misc.h:
    char *basename(char *name);

    // in misc.cc:
    char *basename(char *name) {   
    char *result = name;  
    while(*name) {  
      if(*name == '/') result = name + 1;  
      name++;  
    }  
    return result;  
    }  

Compilation error

    g++ -pipe -W -Wall -fopenmp -ggdb3 -O2  -c -o misc.o ../../src/misc.cc  
    ../../src/misc.cc: In function ‘char* basename(char*)’:  
    ../../src/misc.cc:12: error: declaration of ‘char* basename(char*)’ throws different exceptions  
    ../../src/misc.h:94: error: from previous declaration ‘char* basename(char*) throw ()’  
    make: *** [misc.o] Error 1

Does someone have some clue? Thanks and regards!
compilation error about exceptions
===

I met some compilation error but do not know what the problem is. The code seems not use exception, but the error is about it.

    //in misc.h:
    char *basename(char *name);

    // in misc.cc:
    char *basename(char *name) {   
    char *result = name;  
    while(*name) {  
      if(*name == '/') result = name + 1;  
      name++;  
    }  
    return result;  
    }  

Compilation error

    g++ -pipe -W -Wall -fopenmp -ggdb3 -O2  -c -o misc.o ../../src/misc.cc  
    ../../src/misc.cc: In function ‘char* basename(char*)’:  
    ../../src/misc.cc:12: error: declaration of ‘char* basename(char*)’ throws different exceptions  
    ../../src/misc.h:94: error: from previous declaration ‘char* basename(char*) throw ()’  
    make: *** [misc.o] Error 1

Does someone have some clue? Thanks and regards!