Skip to content
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

Suppress unused function warn when configure with --disable-orca #951

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reshke
Copy link
Contributor

@reshke reshke commented Feb 21, 2025

To fix:

In file included from pg_hint_plan.c:34:
../../src/include/optimizer/orca.h:30:1: error: ‘optimize_query’ defined but not used [-Werror=unused-function]
   30 | optimize_query(Query *parse, int cursorOptions, ParamListInfo boundParams)
      | ^~~~~~~~~~~~~~
make[2]: Leaving directory '/home/reshke/cloudberrydb/gpcontrib/gp_inject_fault'

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


To fix:

In file included from pg_hint_plan.c:34:
../../src/include/optimizer/orca.h:30:1: error: ‘optimize_query’ defined but not used [-Werror=unused-function]
   30 | optimize_query(Query *parse, int cursorOptions, ParamListInfo boundParams)
      | ^~~~~~~~~~~~~~
make[2]: Leaving directory '/home/reshke/cloudberrydb/gpcontrib/gp_inject_fault'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant