title: Problem when assigning a pointer to an enum variable in C
body: <p>I am getting a warning of "assigment from incompatible pointer type".  I don't understand why this warning is happening. I don't know what else to declare "the_go_status" variable to other than an integer. (Note: this is not all the code, but just a simplified version I posted to illustrate the problem.)</p>
  
  <p>The warning occurs on the last line of the example I included below.</p>
  
  <pre><code>//In a header file  
  enum error_type  
  {  
      ERR_1 = 0,  
      ERR_2 = 1,  
      ERR_3 = 2,  
      ERR_4 = 4,  
  };  
  
  
  //In a header file  
  struct error_struct  
  {  
     int value;  
     enum error_type *status;  
  };  
  
  
  
  //In a C file  
  int the_go_status;  
  
  the_go_status = ERR_1;  
  
  //Have the error_struct "status" point to the address of "the_go_status"  
  error_struct.status = &amp;the_go_status;    //WARNING HERE!
  </code></pre>