title: Should the compiler warn on pointer arithmetic with a void pointer?
body: <p>I was compiling C program using gcc 4.7.2. I have sum a address which is void * type with some offset.  (void* + size) should give warning. If it is not then how many bytes it will be added to if size is 1  &amp; if size is 50.
  my only concern at should give warning that we are adding something to void pointer ? </p>
  
  <pre><code> 12         int size = 50;
   /*Allocate a block of memory*/
   14         void *BlockAddress   = malloc(200);
   15         if(!BlockAddress)
   16                  return -1;
   17         address1             = (int *)BlockAddress;
   18         address2             = BlockAddress + 1*size;
   19         address3             = BlockAddress + 2*size;
  </code></pre>
  
  <p>Thanks </p>