Why is (void)&variable; construct used?

Max Okumoto okumoto at ucsd.edu
Tue Apr 26 10:58:34 PDT 2005


With the new gcc do we still need the following construct?

        /*
         * Avoid clobbered variable warnings by forcing the compiler
         * to ``unregister'' variables
         */
#if __GNUC__
        (void)&av;
        (void)&errCheck;
#endif
					Max





More information about the Users mailing list