Projects
Extra
pkg2zip
ignore_pragma_warnings.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ignore_pragma_warnings.patch of Package pkg2zip (Revision 4)
Currently displaying revision
4
,
Show latest
From 9222c4e00235dfe7914e9db0cc352da07e63d9f9 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko <martins.mozeiko@gmail.com> Date: Sun, 15 Jul 2018 13:12:18 -0700 Subject: [PATCH] ignore warning with pragma in source code --- pkg2zip.c | 6 ++++++ 1 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg2zip.c b/pkg2zip.c index ccec8ac..8116f5f 100644 --- a/pkg2zip.c +++ b/pkg2zip.c @@ -11,6 +11,12 @@ #include <string.h> #include <stdio.h> +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Wunknown-warning-option" +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + #define PKG_HEADER_SIZE 192 #define PKG_HEADER_EXT_SIZE 64
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.