Skip to content

Commit

Permalink
Add PackageInfo and silence a compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
genius3000 committed Apr 7, 2020
1 parent 1f6d7c8 commit 68f1ed3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 3.0/m_qrcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
/// $CompilerFlags: find_compiler_flags("libqrencode")
/// $LinkerFlags: find_linker_flags("libqrencode")

/// $PackageInfo: require_system("arch") qrencode pkgconf
/// $PackageInfo: require_system("centos") qrencode-devel pkgconfig
/// $PackageInfo: require_system("darwin") qrencode pkg-config
/// $PackageInfo: require_system("debian") libqrencode3 libqrencode-dev pkg-config
/// $PackageInfo: require_system("ubuntu") libqrencode3 libqrencode-dev pkg-config

/// $ModAuthor: Sadie Powell
/// $ModAuthorMail: [email protected]
/// $ModDesc: Provides support for QR code generation via the /QRCODE command.
Expand All @@ -29,8 +35,27 @@
#include "inspircd.h"
#include "modules/ssl.h"

#ifdef __GNUC__
# pragma GCC diagnostic push
#endif

// Fix warnings about the use of commas at end of enumerator lists on C++03.
#if defined __clang__
# pragma clang diagnostic ignored "-Wc++11-extensions"
#elif defined __GNUC__
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8))
# pragma GCC diagnostic ignored "-Wpedantic"
# else
# pragma GCC diagnostic ignored "-pedantic"
# endif
#endif

#include <qrencode.h>

#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif

class QRCode
{
private:
Expand Down

0 comments on commit 68f1ed3

Please sign in to comment.