Bug 269815 - science/openmodelica: Clang 15 wants proper casting of pointers
Summary: science/openmodelica: Clang 15 wants proper casting of pointers
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 23:06 UTC by Trond Endrestøl
Modified: 2023-02-25 20:32 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Patch for OMCompiler/SimulationRuntime/c/meta/meta_modelica_segv.c (476 bytes, patch)
2023-02-24 23:06 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2023-02-24 23:06:54 UTC
Created attachment 240399 [details]
Patch for OMCompiler/SimulationRuntime/c/meta/meta_modelica_segv.c

Clang 15 got upset over assigning an int to a pointer to void.
Comment 1 Mina Galić freebsd_triage 2023-02-25 01:57:40 UTC
is this patch submitted upstream as well?
Comment 2 Trond Endrestøl 2023-02-25 09:22:23 UTC
(In reply to Mina Galić from comment #1)
No. I probably should.
Comment 3 Trond Endrestøl 2023-02-25 19:04:25 UTC
(In reply to Trond.Endrestol from comment #2)
Upstream accepted my patch.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-02-25 20:32:12 UTC
Patch backported, thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-02-25 20:32:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09e88c06e382a659622ad970d7626819428602d0

commit 09e88c06e382a659622ad970d7626819428602d0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-25 20:29:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-25 20:31:58 +0000

    science/openmodelica: Backport bug fix of improper cast from int to pointer

    PR:             269815
    Reported by:    Trond.Endrestol@ximalas.info

 science/openmodelica/Makefile | 3 +++
 science/openmodelica/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)