Skip to content

Commit ff7a682

Browse files
committed
Suppress warnings in GLib
1 parent f2471c8 commit ff7a682

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

c_glib/arrow-glib/reader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ GArrowFeatherFileReader *
781781
garrow_feather_file_reader_new(GArrowSeekableInputStream *file, GError **error)
782782
{
783783
auto arrow_random_access_file = garrow_seekable_input_stream_get_raw(file);
784+
ARROW_SUPPRESS_DEPRECATION_WARNING
784785
auto reader = arrow::ipc::feather::Reader::Open(arrow_random_access_file);
786+
ARROW_UNSUPPRESS_DEPRECATION_WARNING
785787
if (garrow::check(error, reader, "[feather-file-reader][new]")) {
786788
return garrow_feather_file_reader_new_raw(&(*reader));
787789
} else {

c_glib/arrow-glib/table.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,9 @@ garrow_table_validate_full(GArrowTable *table, GError **error)
772772
return garrow::check(error, arrow_table->ValidateFull(), "[table][validate-full]");
773773
}
774774

775+
// The Feather C++ API is deprecated; this GLib binding still wraps it.
776+
ARROW_SUPPRESS_DEPRECATION_WARNING
777+
775778
typedef struct GArrowFeatherWritePropertiesPrivate_
776779
{
777780
arrow::ipc::feather::WriteProperties properties;
@@ -932,6 +935,8 @@ garrow_table_write_as_feather(GArrowTable *table,
932935
return garrow::check(error, status, "[feather-write-file]");
933936
}
934937

938+
ARROW_UNSUPPRESS_DEPRECATION_WARNING
939+
935940
G_END_DECLS
936941

937942
GArrowTable *
@@ -948,9 +953,11 @@ garrow_table_get_raw(GArrowTable *table)
948953
return priv->table;
949954
}
950955

956+
ARROW_SUPPRESS_DEPRECATION_WARNING
951957
arrow::ipc::feather::WriteProperties *
952958
garrow_feather_write_properties_get_raw(GArrowFeatherWriteProperties *properties)
953959
{
954960
auto priv = GARROW_FEATHER_WRITE_PROPERTIES_GET_PRIVATE(properties);
955961
return &(priv->properties);
956962
}
963+
ARROW_UNSUPPRESS_DEPRECATION_WARNING

c_glib/arrow-glib/table.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ GARROW_EXTERN
3232
std::shared_ptr<arrow::Table>
3333
garrow_table_get_raw(GArrowTable *table);
3434

35+
ARROW_SUPPRESS_DEPRECATION_WARNING
3536
GARROW_EXTERN
3637
arrow::ipc::feather::WriteProperties *
3738
garrow_feather_write_properties_get_raw(GArrowFeatherWriteProperties *properties);
39+
ARROW_UNSUPPRESS_DEPRECATION_WARNING

cpp/src/arrow/ipc/feather.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ARROW_EXPORT Reader {
117117

118118
/// \deprecated Deprecated in 26.0.0. Feather V2 is the Arrow IPC file format;
119119
/// use arrow::ipc::MakeFileWriter with arrow::ipc::IpcWriteOptions instead.
120-
struct ARROW_DEPRECATED("Deprecated in 26.0.0. Use arrow::ipc::MakeFileWriter instead.")
120+
struct ARROW_DEPRECATED("Deprecated in 26.0.0. Use arrow::ipc::IpcWriteOptions instead.")
121121
ARROW_EXPORT WriteProperties {
122122
static WriteProperties Defaults();
123123

python/pyarrow/includes/libarrow_feather.pxd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ from pyarrow.includes.libarrow cimport (CCompressionType, CStatus, CTable,
2323
c_string, CIpcReadOptions)
2424

2525

26-
# NOTE: these feather C++ APIs are deprecated; pyarrow still binds them.
27-
# The user-facing FutureWarning is in pyarrow/feather.py (GH-49232)
2826
cdef extern from "arrow/ipc/api.h" namespace "arrow::ipc" nogil:
2927
int kFeatherV1Version" arrow::ipc::feather::kFeatherV1Version"
3028
int kFeatherV2Version" arrow::ipc::feather::kFeatherV2Version"

0 commit comments

Comments
 (0)