Skip to content

Commit

Permalink
Merge pull request #40 from OpenDDS/value_init_warning_cleanup
Browse files Browse the repository at this point in the history
Fix potential uninitialized usage warnings in common test app code
  • Loading branch information
simpsont-oci authored Sep 10, 2024
2 parents fbdae62 + 7396563 commit b1a2036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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

0 comments on commit b1a2036

Please sign in to comment.