Skip to content

Commit e2e8e11

Browse files
authored
CI: Fix "unreplaced" warnings by using git source (#229)
Because of sparse-latest.tar.gz has not been updated since 06-Sep-2021, we are encoutering an old bug, 0e1aae55e49c ("fix "unreplaced" warnings caused by using typeof() on inline functions") [1], that has been fixed in the newest version. So, let's switch to the git source tree [2] instead of using sparse-latest.tar.gz [3]. [1] https://git.kernel.org/pub/scm/devel/sparse/sparse.git/commit/?id=0e1aae55e49cad7ea43848af5b58ff0f57e7af99 [2] git://git.kernel.org/pub/scm/devel/sparse/sparse.git [3] http://www.kernel.org/pub/software/devel/sparse/dist/sparse-latest.tar.gz
1 parent 5fd1507 commit e2e8e11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.ci/static-analysis.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ function do_cppcheck()
3636

3737
function do_sparse()
3838
{
39-
wget -q http://www.kernel.org/pub/software/devel/sparse/dist/sparse-latest.tar.gz
39+
git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git --depth=1
4040
if [ $? -ne 0 ]; then
4141
echo "Failed to download sparse."
4242
exit 1
4343
fi
44-
tar -xzf sparse-latest.tar.gz
45-
pushd sparse-*/
44+
pushd sparse
4645
make sparse || exit 1
4746
sudo make INST_PROGRAMS=sparse PREFIX=/usr install || exit 1
4847
popd

0 commit comments

Comments
 (0)