Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential uninitialized usage warnings in common test app code #40

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions FindQwt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ find_library(QWT_LIBRARY
/usr/local/opt/qwt-qt5/lib
/usr/local/lib
/usr/local/lib/qt5
"$ENV{QWT_DIR}/lib"
"$ENV{LIB_DIR}/lib"
"$ENV{LIB}"
)
Expand All @@ -37,6 +38,7 @@ FIND_PATH(QWT_INCLUDE_DIR NAMES qwt.h PATHS
/usr/local/opt/qwt-qt5/include
/usr/local/include
/usr/local/include/qt5
"$ENV{QWT_DIR}/src"
"$ENV{LIB_DIR}/include"
"$ENV{INCLUDE}"
PATH_SUFFIXES qwt-qt5 qwt qwt6 qt5/qwt
Expand Down
12 changes: 6 additions & 6 deletions test/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ void generate_ut(std::mt19937& mt, std::mt19937::result_type recursion_limit, te
break;
}
case 2: {
test::BasicTypes bt;
test::BasicTypes bt{};
ut.bt(bt);
generate_bt(mt, recursion_limit, ut.bt());
break;
}
case 3: {
test::BasicTypesSeq bts;
test::BasicTypesSeq bts{};
ut.bts(bts);
generate_bts(mt, recursion_limit, ut.bts());
break;
}
case 4: {
test::BasicTypesSeqSeq btss;
test::BasicTypesSeqSeq btss{};
ut.btss(btss);
generate_btss(mt, recursion_limit, ut.btss());
break;
Expand Down Expand Up @@ -121,19 +121,19 @@ void generate_cut(std::mt19937& mt, std::mt19937::result_type recursion_limit, t
break;
}
case 2: {
test::UnionType ut;
test::UnionType ut{};
cut.ut(ut);
generate_ut(mt, recursion_limit, cut.ut());
break;
}
case 3: {
test::TreeNode tn;
test::TreeNode tn{};
cut.tn(tn);
generate_tn(mt, recursion_limit, cut.tn());
break;
}
case 4: {
test::TreeNodeSeq tns;
test::TreeNodeSeq tns{};
cut.tns(tns);
generate_tns(mt, recursion_limit, cut.tns());
break;
Expand Down
Loading