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

Fixing incompatible pointer warning during generated code compilation #9106

Merged
merged 1 commit into from Jun 20, 2022

Conversation

AnHeuermann
Copy link
Member

Problem created in bd211bf.

testSolver.problem1.c:3691:4: warning: incompatible pointer types initializing 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') with an expression of type 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types]
   testSolver_problem1_initialAnalyticJacobianA,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testSolver.problem1.c:3692:4: warning: incompatible pointer types initializing 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') with an expression of type 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types]
   testSolver_problem1_initialAnalyticJacobianB,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testSolver.problem1.c:3693:4: warning: incompatible pointer types initializing 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') with an expression of type 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types]
   testSolver_problem1_initialAnalyticJacobianC,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testSolver.problem1.c:3694:4: warning: incompatible pointer types initializing 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') with an expression of type 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types]
   testSolver_problem1_initialAnalyticJacobianD,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testSolver.problem1.c:3695:4: warning: incompatible pointer types initializing 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') with an expression of type 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types]
   testSolver_problem1_initialAnalyticJacobianF,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@AnHeuermann AnHeuermann added the COMP/SimRT/C Issues and pull requests related to C simulation runtime. label Jun 15, 2022
@AnHeuermann AnHeuermann self-assigned this Jun 15, 2022
@AnHeuermann
Copy link
Member Author

@mahge FYI, so you don't do the same. While checking #9105 I found this leftover problem.

@AnHeuermann AnHeuermann changed the title Fixing incompativle pointer warning during generated code compilation Fixing incompatible pointer warning during generated code compilation Jun 15, 2022
@AnHeuermann AnHeuermann enabled auto-merge (squash) June 15, 2022 14:31
@mahge
Copy link
Contributor

mahge commented Jun 15, 2022

@mahge FYI, so you don't do the same. While checking #9105 I found this leftover problem.

I noticed :) Thanks.

@AnHeuermann AnHeuermann merged commit 0047718 into OpenModelica:master Jun 20, 2022
@AnHeuermann AnHeuermann deleted the incompatiblePointerFix branch June 20, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP/SimRT/C Issues and pull requests related to C simulation runtime.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants