It's just a warning.
The value of (QUERY_FLAG | OPCODE_STANDARD_QUERY | RECURSION_DESIRED_FLAG) is 0x0100 (=256). The htons macro will change this to 0x0001 but in doing so, the compiler recognizes...