diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-11 21:49:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-11 21:49:54 +0200 |
commit | 80a321118cc46c357a317b8668998d13f8c8b062 (patch) | |
tree | 81f43a1eb00fb48d78568a3cc71ee77e955ba80b /src/blueshift_iccprofile.c | |
parent | hotplugging does work, can operate on CRTC:s without any attached monitors (diff) | |
download | blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.gz blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.bz2 blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.xz |
add more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_iccprofile.c')
-rw-r--r-- | src/blueshift_iccprofile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blueshift_iccprofile.c b/src/blueshift_iccprofile.c index 689a2da..99d5c42 100644 --- a/src/blueshift_iccprofile.c +++ b/src/blueshift_iccprofile.c @@ -42,11 +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 push + #pragma GCC diagnostic ignored "-Wstack-protector" +int main(int argc, char **argv) { -#pragma GCC diagnostic pop + #pragma GCC diagnostic pop char* display = NULL; xcb_screen_iterator_t iter; int screen_count; @@ -128,7 +128,7 @@ int main(int argc, char** argv) xcb_get_atom_name_reply_t* name_reply; char* name; char* name_; - size_t len; + uint32_t len; xcb_get_property_cookie_t prop_cookie; xcb_get_property_reply_t* prop_reply; int monitor; @@ -154,7 +154,7 @@ int main(int argc, char** argv) /* Extract the atom name from the data structure that holds it. */ name_ = xcb_get_atom_name_name(name_reply); /* As well as the length of the name; it is not NUL-termianted.*/ - len = (size_t)xcb_get_atom_name_name_length(name_reply); + len = (uint32_t)xcb_get_atom_name_name_length(name_reply); /* NUL-terminate the atom name, */ name = alloca((len + 1U) * sizeof(char)); |