-
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?
Conversation
@@ -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 comment
The 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.
@@ -51,7 +51,7 @@ DuckdbTruncateTable(Oid relation_oid) { | |||
} | |||
|
|||
void | |||
DuckdbHandleDDL(Node *parsetree, const char *queryString) { | |||
DuckdbHandleDDL(Node *parsetree, const char *) { |
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.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit silly.
-Werror
)