Skip to content

Commit 34281ec

Browse files
committed
Use ARROW_UNUSED for ignored results
1 parent 0ae2993 commit 34281ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/src/arrow/flight/sql/odbc/odbc_api.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ SQLRETURN SQLGetDiagRec(SQLSMALLINT handle_type, SQLHANDLE handle, SQLSMALLINT r
423423
// Microsoft documentation does not mention
424424
// any SQLGetDiagRec return value that is associated with `sql_state` buffer, so
425425
// the return value for writing `sql_state` buffer is ignored by the driver.
426-
GetStringAttribute(is_unicode, state, false, sql_state, size, &size, *diagnostics);
426+
ARROW_UNUSED(GetStringAttribute(is_unicode, state, false, sql_state, size, &size,
427+
*diagnostics));
427428
}
428429

429430
if (native_error_ptr) {

0 commit comments

Comments
 (0)