title: #Pragma pack giving warning when compiling
body: <p>I'm creating the following structures in C and only the Packet structure will be sent over a UDP socket. I want to pack the structure to avoid different alignments on different computers (Not sure if I need to pack both or only the one I'm sending). When I compile this, I get the following warning for both: </p>
  
  <pre><code>warning: ignoring #pragma ( [-Wunknown-pragmas] #pragma(pack);`
  </code></pre>
  
  <p>Why is it that my pragmas are being ignored? And how can this be fixed.</p>
  
  <pre><code>#pragma push(pack, 1);
  struct packet{ // the actual packet within the node
      uint32_t seqnum;
      uint32_t checkSum;
      uint32_t numPackets; // number of packets to send
      char data[1024]; // the data in the packet
  };
  struct packetNode{ //for the linked list
      struct packet p;
      struct packetNode *next;
  };
  #pragma pop(pack)
  </code></pre>
  
  <p>gcc version:</p>
  
  <pre><code>gcc --version 
  gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
  </code></pre>