Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
6b1cf128
Commit
6b1cf128
authored
7 months ago
by
znley
Committed by
Andy Postnikov
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
community/stlink: fix build with gcc14
parent
921fd55a
No related branches found
No related tags found
1 merge request
!70474
community/stlink: fix build with gcc14
Pipeline
#253521
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/stlink/APKBUILD
+2
-0
2 additions, 0 deletions
community/stlink/APKBUILD
community/stlink/gcc14.patch
+13
-0
13 additions, 0 deletions
community/stlink/gcc14.patch
with
15 additions
and
0 deletions
community/stlink/APKBUILD
+
2
−
0
View file @
6b1cf128
...
...
@@ -11,6 +11,7 @@ makedepends="cmake libusb-dev samurai"
options
=
"!check"
# upstream doesn't have automated tests
subpackages
=
"
$pkgname
-doc
$pkgname
-dev"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/stlink-org/stlink/archive/v
$pkgver
.tar.gz
gcc14.patch
"
build
()
{
...
...
@@ -38,4 +39,5 @@ package() {
sha512sums
=
"
49245a4b0aeb926dd71ec4260b707d900318fe68e3a36e2e5543587fefb4886a9ff0ff42e0e12a8e727a5d4e9c7b4ce13989ca4d963842dbf960065e5fa0c968 stlink-1.8.0.tar.gz
f0374641756981c94d865d282cbe8009ccc9e9b41499501310f7442878e68b1984418428d13a7ea1f22312d5c928ec7bdb845d99a54a4264497a954859ad38cc gcc14.patch
"
This diff is collapsed.
Click to expand it.
community/stlink/gcc14.patch
0 → 100644
+
13
−
0
View file @
6b1cf128
diff --git a/src/stlink-lib/chipid.c b/src/stlink-lib/chipid.c
index c115089..0a6a4e9 100644
--- a/src/stlink-lib/chipid.c
+++ b/src/stlink-lib/chipid.c
@@ -65,7 +65,7 @@
void process_chipfile(char *fname) {
return;
}
- ts = calloc(sizeof(struct stlink_chipid_params), 1);
+ ts = calloc(1, sizeof(struct stlink_chipid_params));
while (fgets(buf, sizeof(buf), fp) != NULL) {
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment