On Wed, Nov 10, 2004 at 11:14:09AM -0600, Timur Tabi wrote: > I have a driver that needs to be compilable with as many different > kernel versions as possible. Heh, good luck. > One problem I'm having is that if I > specify "-Wall" to catch all warnings, the compiler sometimes complains > about the kernel header files, not my code. For example, with SuSE 8.2: Don't use -Wall. See the linux-kernel archives for previous attempts at doing this. As you've found out, many kernel header files don't like that warning level. > 2) Are certain warning levels just not acceptable for compiling the > kernel? In other words, is "-Wall" always a bad idea? If so, what > warning level should I use? Whatever level you feel comfortable with. Good luck, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/