Skip to content

Commit

Permalink
[-Wunused-local-typedef] - remove
Browse files Browse the repository at this point in the history
libgnucash/engine/test/utest-Account.cpp:2414:11: warning: typedef ‘using AcctTypeType = struct std::underlying_type<GNCAccountType>’ locally defined but not used [-Wunused-local-typedefs]
 2414 |     using AcctTypeType = std::underlying_type<GNCAccountType>;
      |           ^~~~~~~~~~~~
  • Loading branch information
richardcohen committed Feb 16, 2023
1 parent 0798bce commit d4dfe4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libgnucash/engine/test/utest-Account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,6 @@ test_xaccAccountHasAncestor (Fixture *fixture, gconstpointer pData)
}
inline GNCAccountType& operator++(GNCAccountType& x)
{
using AcctTypeType = std::underlying_type<GNCAccountType>;
if (x < ACCT_TYPE_LAST)
x = static_cast<GNCAccountType>(x + 1);
return x;
Expand Down

0 comments on commit d4dfe4e

Please sign in to comment.