Skip to content

Commit 496259d

Browse files
committed
Flag variable as maybe_unused
1 parent adf3f95 commit 496259d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

methods/CMangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions(Eluna* E)
21+
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

methods/Mangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions(Eluna* E)
21+
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

methods/TrinityCore/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace LuaCustom
3131
{ "CustomPlayerMethod", &LuaCustom::CustomPlayerMethod },
3232
};
3333

34-
inline void RegisterCustomFunctions(Eluna* E)
34+
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
3535
{
3636
// Append all the custom Player methods to the Player object
3737
ElunaTemplate<Player>::SetMethods(E, CustomPlayerMethods);

methods/VMangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions(Eluna* E)
21+
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

0 commit comments

Comments
 (0)