Skip to content

Commit

Permalink
Flag variable as maybe_unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Nov 11, 2024
1 parent adf3f95 commit 496259d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion methods/CMangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions(Eluna* E)
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
{

};
Expand Down
2 changes: 1 addition & 1 deletion methods/Mangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions(Eluna* E)
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
{

};
Expand Down
2 changes: 1 addition & 1 deletion methods/TrinityCore/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace LuaCustom
{ "CustomPlayerMethod", &LuaCustom::CustomPlayerMethod },
};

inline void RegisterCustomFunctions(Eluna* E)
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
{
// Append all the custom Player methods to the Player object
ElunaTemplate<Player>::SetMethods(E, CustomPlayerMethods);
Expand Down
2 changes: 1 addition & 1 deletion methods/VMangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions(Eluna* E)
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
{

};
Expand Down

0 comments on commit 496259d

Please sign in to comment.