struct error of conflicting
    static double * HotOrWarm(double * const hot,
                          double * const warm,
                          const JetNorm * const jn) { 

      double wtemp;
      double primitives[NVAR];
      double mu;
      int nv;
    /* Set dummy primitives to get mu */
     primitives[DN] = 1.;
     primitives[VX] = 0.; 
     mu = MEAN_MOLECULAR_WEIGHT(primitives);
     wtemp = tempFromEOS(warm[DN], warm[PR], mu)*jn->temp_norm;
     #ifndef TCRIT
     fputs("Error: TCRIT not defined.\n", stderr); QUIT_PLUTO(1);
     #endif

     if (wtemp > TCRIT){ 
     //for (nv = 0; nv < NVAR; ++nv) zone[nv] = hot[nv];
     return hot;
     }
     else{
     return warm;
     }

     }

If I run this programme, I find the following error:
error: conflicting types for 'HotOrWarm'
error: previous declaration of 'HotOrWarm' was here

What can I do in this regard?


struct error of conflicting
===

    static double * HotOrWarm(double * const hot,
                          double * const warm,
                          const JetNorm * const jn) { 

      double wtemp;
      double primitives[NVAR];
      double mu;
      int nv;
    /* Set dummy primitives to get mu */
     primitives[DN] = 1.;
     primitives[VX] = 0.; 
     mu = MEAN_MOLECULAR_WEIGHT(primitives);
     wtemp = tempFromEOS(warm[DN], warm[PR], mu)*jn->temp_norm;
     #ifndef TCRIT
     fputs("Error: TCRIT not defined.\n", stderr); QUIT_PLUTO(1);
     #endif

     if (wtemp > TCRIT){ 
     //for (nv = 0; nv < NVAR; ++nv) zone[nv] = hot[nv];
     return hot;
     }
     else{
     return warm;
     }

     }

If I run this programme, I find the following error:
error: conflicting types for 'HotOrWarm'
error: previous declaration of 'HotOrWarm' was here

What can I do in this regard?

