title: How to make compiler not show int to void pointer cast warnings
body: <p>I have some code that does lots of casting from int to void* and vice-versa (i don't care if it's ugly. I like having generic stuff)</p>
  
  <p>Example:</p>
  
  <pre><code>typedef struct _List {
      long size;
      long mSize; // Max size
      void** elementArray;
  }List;
  
  List l;
  ...
  int i = 2;
  l.elementArray[i] = i; // Intentional usage of pointer as integer
  // Actual size of pointer does not matter
  </code></pre>
  
  <p>but when i compile i get a bajillion</p>
  
  <pre><code> warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
  </code></pre>
  
  <p>warnings.
  Is there a flag to tell gcc to not print this specific warning?</p>
  
  <p>I'm compiling with -Wall, so I'm not sure if i can make this go away that easilly</p>