Bruno Haible via Gnulib discussion list <[email protected]> writes: > As I said in another mail: The only acceptable silencing would be to disable > '-Waddress' for the scope of the entire source file. > > Like this: > > #if _GL_GNUC_PREREQ (4, 2) > # pragma GCC diagnostic ignored "-Waddress" > #endif
FWIW, I agree with that direction. The warning doesn't seem useful enough to warrant extra effort to keep it enabled. I.e., I suspect it is difficult to write code that triggers it outside of this specific Windows linking vs. loading case. Collin
