title: How get rid of warning: deprecated conversion from string constant to char*
body: <p>How to get rid of the below warnings.</p>
  
  <pre><code> warning: deprecated conversion from string constant to char* [-Wwrite-strings]
  </code></pre>
  
  <p>Here is code. </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #define MY_STRING       "drivers.txt"   
  
  void printMyString(char str[]){
      printf(str);  
  }
  
  
  int main(){
      printMyString(MY_STRING);   
  }
  </code></pre>