aboutsummaryrefslogtreecommitdiffstats
path: root/src/libqmi-glib
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2017-02-06 13:03:21 -0600
committerDan Williams <dcbw@redhat.com>2017-02-06 13:04:19 -0600
commitf52608c93adcfb7732fbf4caab1aa0b80a83fe30 (patch)
tree33c5287c5e07335740e3cd44b7687b373821c525 /src/libqmi-glib
parent83cc61fef03536658a91847c8db1253cef43c239 (diff)
downloadexternal_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.zip
external_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.tar.gz
external_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.tar.bz2
build,all: enable -Wtype-limits and fix some comparisons
-Wtype-limits warns when comparing unsigned variables <= 0, which we shouldn't be doing.
Diffstat (limited to 'src/libqmi-glib')
-rw-r--r--src/libqmi-glib/qmi-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c
index 54096ca..1d8890e 100644
--- a/src/libqmi-glib/qmi-device.c
+++ b/src/libqmi-glib/qmi-device.c
@@ -1743,7 +1743,7 @@ parse_response (QmiDevice *self)
if (qmi_utils_get_traces_enabled ()) {
gchar *printable;
- guint len = CLAMP (self->priv->buffer->len, 0, 2048);
+ guint len = MIN (self->priv->buffer->len, 2048);
printable = __qmi_utils_str_hex (self->priv->buffer->data, len, ':');
g_debug ("<<<<<< RAW INVALID MESSAGE:\n"