diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-05 15:01:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-05 15:01:06 +0200 |
commit | 11952e73c364429f05751c17c2911fb86365a82e (patch) | |
tree | fd1fb2a3d45bd3a6817930aa93c7e6faa1e49de9 /src | |
parent | bump version (diff) | |
download | blueshift-11952e73c364429f05751c17c2911fb86365a82e.tar.gz blueshift-11952e73c364429f05751c17c2911fb86365a82e.tar.bz2 blueshift-11952e73c364429f05751c17c2911fb86365a82e.tar.xz |
ignore stack-protector skip warning on char** argv from main parameters
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/blueshift_iccprofile.c | 4 | ||||
-rw-r--r-- | src/blueshift_idcrtc.c | 3 |
2 files changed, 6 insertions, 1 deletions
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; |