]> www.infradead.org Git - users/hch/blktests.git/commit
src/discontiguous-io: Do not shadow variables
authorBart Van Assche <bvanassche@acm.org>
Mon, 29 Oct 2018 21:34:00 +0000 (14:34 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 1 Nov 2018 17:40:42 +0000 (10:40 -0700)
commita3e09ef28cc1d8ae30cf39cf19ec38a7577c77eb
treede9800c557c79a19f2acbc6aa5d72dbfa6bd7484
parentfc59cfd5fe0adb57f9056cdcd2071ace09ac3f2d
src/discontiguous-io: Do not shadow variables

Avoid using variables in an inner scope with the same name as variables in
an outer scope. Enable the -Wshadow compiler flag for C and C++ source
files such that in the future the compiler will complain about shadowing.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
src/Makefile
src/discontiguous-io.cpp