From 11952e73c364429f05751c17c2911fb86365a82e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Apr 2014 15:01:06 +0200 Subject: ignore stack-protector skip warning on char** argv from main parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_iccprofile.c | 4 +++- src/blueshift_idcrtc.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/blueshift_iccprofile.c b/src/blueshift_iccprofile.c index b96e682..689a2da 100644 --- a/src/blueshift_iccprofile.c +++ b/src/blueshift_iccprofile.c @@ -35,7 +35,6 @@ static xcb_connection_t* connection; static xcb_generic_error_t* error; - /** * Main entry point of the program * @@ -43,8 +42,11 @@ static xcb_generic_error_t* error; * @param argv Command line arguments * @return Zero on success */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstack-protector" int main(int argc, char** argv) { +#pragma GCC diagnostic pop char* display = NULL; xcb_screen_iterator_t iter; int screen_count; diff --git a/src/blueshift_idcrtc.c b/src/blueshift_idcrtc.c index c1f73b6..248c99e 100644 --- a/src/blueshift_idcrtc.c +++ b/src/blueshift_idcrtc.c @@ -56,8 +56,11 @@ static xcb_generic_error_t* error; * @param argv Command line arguments * @return Zero on success */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstack-protector" int main(int argc, char** argv) { +#pragma GCC diagnostic pop char* display = NULL; xcb_randr_query_version_cookie_t version_cookie; xcb_randr_query_version_reply_t* randr_version; -- cgit v1.2.3-70-g09d2