Skip to content

Commit

Permalink
Disable warning in MainToolbar.cpp
Browse files Browse the repository at this point in the history
This warning is generated within boost::bimap and was causing the
release build to fail.
  • Loading branch information
derceg committed Jan 26, 2024
1 parent d8b0dc4 commit 84be47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Explorer++/Explorer++/MainToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ MakeBimap(std::initializer_list<typename boost::bimap<L, R>::value_type> list)
}

#pragma warning(push)
#pragma warning(disable:4996) //warning STL4010: Various members of std::allocator are deprecated in C++17.
// warning STL4010: Various members of std::allocator are deprecated in C++17.
// warning C4834: discarding return value of function with 'nodiscard' attribute
#pragma warning(disable: 4996 4834)

// Ideally, toolbar button IDs would be saved in the XML config file, rather
// than button strings, but that's not especially easy to change now.
Expand Down

0 comments on commit 84be47c

Please sign in to comment.