On May 14, 2006, at 8:31 PM, matthew green wrote:
Module Name: src Committed By: christos Date: Sun May 14 23:47:34 UTC 2006 Modified Files: src/usr.bin/config: main.c Log Message:gcc-4.0 needs attribute used. Variables with attribute unused get removed.hmmm... older GCC's want the unused attribute. i've had this problem in the past. i'm not sure this change is good enough...? perhaps it should only use "used" with gcc major >= 4?
"used" should work fine with GCC 3.x at least.. and I think it will be OK with 2.95.3, also. If there are problems with the others, I would prefer tweaking the older compilers to recognized the newer attribute.
-- thorpej