forked from inspircd/inspircd-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PackageInfo and silence a compiler warning.
- Loading branch information
1 parent
1f6d7c8
commit 68f1ed3
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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: | ||
|