Permalink
Browse files

Anjay 1.13.1

Improvements:
- Fixed compilation warnings caused by unused variables / mismatching
  printf format specifiers
  • Loading branch information...
sznaider committed Oct 8, 2018
1 parent d8ff1d6 commit 8106f46d0139f1002598961f41ec28f7905b0e98
View
@@ -15,7 +15,7 @@
cmake_minimum_required(VERSION 2.8.12)
project(anjay C)
set(ANJAY_VERSION "1.13.0" CACHE STRING "Anjay library version")
set(ANJAY_VERSION "1.13.1" CACHE STRING "Anjay library version")
set(ANJAY_BINARY_VERSION 1.0.0)
set(ANJAY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
@@ -238,7 +238,7 @@ schedule_trigger(anjay_t *anjay, anjay_observe_entry_t *entry, int32_t period) {
if (retval) {
anjay_log(ERROR,
"Could not schedule automatic notification trigger, result: "
"%" PRIi32,
"%d",
retval);
}
return retval;
@@ -383,7 +383,7 @@ int _anjay_observe_schedule_pmax_trigger(anjay_t *anjay,
int result;
if ((result = get_attrs(anjay, &attrs, &entry->key))) {
anjay_log(DEBUG, "Could not get observe attributes, result: %" PRIi32,
anjay_log(DEBUG, "Could not get observe attributes, result: %d",
result);
return result;
}
@@ -241,6 +241,7 @@ prepare_udp_connection(anjay_t *anjay,
anjay_log(ERROR, "could not create CoAP socket");
return -ENOMEM;
}
(void) result;
out_conn->conn_socket_ = socket;
return 0;
}
@@ -251,9 +251,8 @@ static void ensure_socket_connected(anjay_t *anjay,
avs_net_abstract_socket_t *existing_socket =
_anjay_connection_internal_get_socket(connection);
int result = 0;
if (existing_socket == NULL
&& (result = recreate_socket(anjay, def, connection, inout_info))) {
&& recreate_socket(anjay, def, connection, inout_info)) {
connection->state = ANJAY_SERVER_CONNECTION_ERROR;
on_connection_refreshed(anjay, connections);
return;
@@ -163,6 +163,7 @@ void _anjay_connection_bring_online(anjay_t *anjay,
anjay_server_connection_t *connection = _anjay_get_server_connection(ref);
assert(connection);
assert(!_anjay_connection_is_online(connection));
(void) connection;
_anjay_connection_internal_bring_online(anjay, &ref.server->connections,
ref.conn_type);
}

0 comments on commit 8106f46

Please sign in to comment.