title: assignment makes pointer from integer without a cast [enabled by default] when assigning char pointer to character array
body: <p>I'm trying to return a pointer to a character array. The function is located in a different file. I compile the files together and it prints out "hello" just fine, but still produces a warning </p>
  
  <blockquote>
    <p>warning: assignment makes pointer from integer without a cast [enabled by default]</p>
  </blockquote>
  
  <p>I tried casting the returned value of <code>function()</code> to <code>(char *)</code>, but ended up with a different warning:</p>
  
  <blockquote>
    <p>warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]" instead.</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>
  
  <p>File 1</p>
  
  <pre><code>#include &lt;stdio.h&gt;                                                                                        
  
  int main()                                                                                                
  {                                                                                                                                                                                                   
     printf("%s\n", function());                                                                                   
     return 0;                                                                                               
  }
  </code></pre>
  
  <p>File 2</p>
  
  <pre><code>#include &lt;stdio.h&gt;                                                                                       
  
  char *message = "hello";                                                                                 
  
  char *function()                                                                                         
   {                                                                                                        
    return(message);                                                                                       
   }                                                                                                        
  </code></pre>