title: warning: pointer of type ‘void *’ used in arithmetic
body: <p>I am writing and reading registers from a memory map, like this:</p>
  
  <pre><code>//READ
  return *((volatile uint32_t *) ( map + offset ));
  
  //WRITE
  *((volatile uint32_t *) ( map + offset )) = value;
  </code></pre>
  
  <p>However the compiler gives me warnings like this:</p>
  
  <pre><code>warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
  </code></pre>
  
  <p>How can I change my code to remove the warnings?  I am using C++ and Linux.</p>