From 8470e31b01d4b66e6374258e9720ce9dcc3ebf9f Mon Sep 17 00:00:00 2001 From: locus313 Date: Fri, 16 Oct 2020 23:32:11 -0700 Subject: [PATCH] update LGF_Solo.cpp to work on docker --- src/Lfg_Solo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lfg_Solo.cpp b/src/Lfg_Solo.cpp index ee5f70e..ea035bf 100644 --- a/src/Lfg_Solo.cpp +++ b/src/Lfg_Solo.cpp @@ -20,7 +20,7 @@ public: lfg_solo_announce() : PlayerScript("lfg_solo_announce") {} - void OnLogin(Player* player) + void OnLogin(Player* __attribute__ ((unused))player) { // Announce Module if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true)) @@ -37,7 +37,7 @@ public: // Docker Installation prevents warnings. In order to avoid the issue, we need to add __attribute__ ((unused)) // to the player variable to tell the compiler it is fine not to use it. - void OnLogin(Player* player) + void OnLogin(Player* __attribute__ ((unused))player) { if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true)) {