Folks,

We are seeing some warnings with the Intel compiler with hwloc (listed below).  
The warnings seem to be somewhat silly because there already is a cast to "char 
*" from the string literal, but it seems to expect a cast to "const char *" 
before casting to "char *".  We are maintaining the below patch to workaround 
it.  Can you either integrate this or a better fix for the warning?

https://github.com/pmodels/hwloc/commit/fb27dc6e21bac14754d1b50b57f752e37d475704

This is with icc 19.0.3.199.

Regards,

  -- Pavan

----8<----
In directory: 
/var/lib/jenkins-slave/workspace/balaji-wip-mpich-warnings/compiler/intel/config/ch3-nemesis-tcp/label/centos64_review/modules/hwloc/hwloc
  CC       topology-linux.lo
topology-xml-nolibxml.c(228): warning #3179: deprecated conversion of string 
literal to char* (should be const char*)
      *beginp = (char *) "";
                ^

topology-xml-nolibxml.c(304): warning #3179: deprecated conversion of string 
literal to char* (should be const char*)
    nstate->tagname = (char *) "topology";
                      ^

topology-xml.c(707): warning #3179: deprecated conversion of string literal to 
char* (should be const char*)
        char *buffer = (char *) "";
                       ^

topology-xml-libxml.c(158): warning #3179: deprecated conversion of string 
literal to char* (should be const char*)
      *beginp = (char *) "";
                ^
  CC       topology-hardwired.lo
traversal.c(598): warning #3179: deprecated conversion of string literal to 
char* (should be const char*)
        const char *quote = strchr(info->value, ' ') ? "\"" : "";
                                                            ^
  CC       topology-x86.lo
topology-linux.c(4764): warning #3179: deprecated conversion of string literal 
to char* (should be const char*)
      data->dumped_hwdata_dirname = (char *) RUNSTATEDIR "/hwloc/";
----8<----

_______________________________________________
hwloc-users mailing list
hwloc-users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-users

Reply via email to