-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail compilation on warnings #439
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ uint32 schema_hash_value; | |
* IsExtensionRegistered for details). | ||
*/ | ||
static void | ||
InvalidateCaches(Datum arg, int cache_id, uint32 hash_value) { | ||
InvalidateCaches(Datum, int, uint32 hash_value) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I like this type of change. If we explicitly don't use arguments provided by a hook, I'd like to know what those arguments are used for. Both for reviewing code, but also for when wanting to change behavior of a hook in the future. |
||
if (hash_value != schema_hash_value) { | ||
return; | ||
} | ||
|
@@ -112,7 +112,7 @@ BuildDuckdbOnlyFunctions() { | |
const char *function_names[] = {"read_parquet", "read_csv", "iceberg_scan", "iceberg_metadata", | ||
"iceberg_snapshots", "delta_scan", "read_json"}; | ||
|
||
for (int i = 0; i < lengthof(function_names); i++) { | ||
for (uint32_t i = 0; i < lengthof(function_names); i++) { | ||
CatCList *catlist = SearchSysCacheList1(PROCNAMEARGSNSP, CStringGetDatum(function_names[i])); | ||
|
||
for (int j = 0; j < catlist->n_members; j++) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,6 +200,7 @@ DECLARE_PG_FUNCTION(cache) { | |
} | ||
|
||
DECLARE_PG_FUNCTION(pgduckdb_recycle_ddb) { | ||
(void)fcinfo; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems a bit silly. |
||
pgduckdb::DuckDBManager::Get().Reset(); | ||
PG_RETURN_BOOL(true); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we can just remove this argument, since we control the callsite.