]> git.ipfire.org Git - thirdparty/man-pages.git/commit
build-src.mk: CFLAGS: Add -Wdeclaration-after-statement
authorAlejandro Colomar <alx@kernel.org>
Wed, 25 Jan 2023 23:02:16 +0000 (00:02 +0100)
committerAlejandro Colomar <alx@kernel.org>
Thu, 26 Jan 2023 00:01:55 +0000 (01:01 +0100)
commit4d283778ec03acfb27b3de2511b4c69da607ee4e
tree4f49bcd7d79de00bfd8fe9c6347862e109c0b983
parent81dac15cc5d520b9d3ab5c3ff9637d39c878a2a4
build-src.mk: CFLAGS: Add -Wdeclaration-after-statement

This helps write more readable code, separating variable declarations
from code.  In some cases, when initializing structs, or declaring some
VLAs, we can't follow the rule, so don't make it an error.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/build-src.mk