Fix warning removal pragmas in q_shared.h