Re: [PATCH] Fix compile warnings in 2.4.0

Neil Booth (neil@daikokuya.demon.co.uk)
Sun, 7 Jan 2001 22:21:37 +0000


Rich Baum wrote:-

> This patch should fix the rest of the warnings about #endif
> statements when using the 20001225 gcc snapshot. Thanks to
> Keith Owens for providing a script to automate this process. It got
> the job done sooner and found warnings to fix for non x86 platforms.

Unfortunately, the script also gets stuff it shouldn't, and in some
cases adds comments within the comments, probably causing stuff to
stop compiling altogether. Some examples below.

Neil.

> +# endif /* # */

[....]

> * appropriate for an 030 or an 040. This is useful for debugging purposes
> - * and as such is enclosed in #ifdef MMU_PRINT/#endif clauses.
> + * and as such is enclosed in #ifdef MMU_PRINT/#endif /* clauses. */
> *

[...]

> * is specifically for debugging and can be very useful. It is surrounded by
> - * #ifdef CONSOLE/#endif clauses so it doesn't have to ship in known-good
> + * #ifdef CONSOLE/#endif /* clauses so it doesn't have to ship in known-good */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/