Skip to content

Commit

Permalink
slist.disconnect: -Wmaybe-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Feb 16, 2024
1 parent ce678b3 commit df057a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ci-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ make -j9
make -j4 CXX='g++ -std=c++03' CFLAGS=-I.
make -j4 CXX='g++ -std=c++11' CFLAGS=-I.
make -j4 CXX='g++ -std=c++17' CFLAGS=-I.
make -j4 CXX='g++ -std=c++20' CFLAGS=-I.
make -j4 CXX='g++ -std=c++23' CFLAGS=-I.
make -j9 LONG=1 O0=1 SANITIZE=1
make -j9 LONG=1 O1=1 SANITIZE=1
make -j9 LONG=1 O2=1 SANITIZE=1
make -j9 LONG=1 O3=1 SANITIZE=1
make -j9 LONG=1 Og=1 SANITIZE=1
make -j9 LONG=1 Os=1 SANITIZE=1
make -j9 DEBUG=1
make -j9 LONG=1 Ofast=1
make -j9 LONG=1 O0=1 SANITIZE=0
make -j9 LONG=1 O1=1 SANITIZE=0
Expand All @@ -20,12 +23,16 @@ make -j9 LONG=1 Os=1 SANITIZE=0
make -j9 LONG=1 Ofast=1 SANITIZE=0
make -j9 CC=gcc\ -std=c99
make -j9 CC=gcc\ -std=c11
make -j9 CC=gcc\ -std=c17
make -j9 CC=gcc\ -std=c2x
make -j9 CXX='clang++ -stdlib=libc++'
make -j9 CXX='clang++ -std=c++11 -stdlib=libc++'
make -j9 CXX='clang++ -std=c++17 -stdlib=libc++'
make -j9 CXX='clang++ -std=c++20 -stdlib=libc++'
make -j9 CXX='clang++ -std=c++23 -stdlib=libc++'
make -j9 CC=clang CXX='clang++ -std=c++11'
make -j9 CC=clang CXX='clang++ -std=c++17'
make -j9 CC=clang CXX='clang++ -std=c++20'
make -j9 CC=clang CXX='clang++ -std=c++23'
make examples SANITIZE=1
make examples SANITIZE=0
2 changes: 1 addition & 1 deletion ctl/forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static inline void JOIN(A, disconnect)(A *self, B *node)
self->head = self->head->next;
else
{
B *prev;
B *prev = self->head;
for (B *tail = self->head; tail != node; prev = tail, tail = tail->next)
;
if (prev->next) // == node
Expand Down

0 comments on commit df057a1

Please sign in to comment.