Fix #3181 (Do not include <cassert>) #3182

Open
ancientstraits wants to merge 1 commit from ancientstraits/patch-1 into develop
ancientstraits commented 2026-09-05 12:29:13 -05:00 (Migrated from github.com)

Fixes Issue #3181.

This pull request removes #include <cassert.h>, so the only thing in the #ifdef _cplusplus
block is extern C {.

This code change removes the error I get when trying to use clangd with pico-sdk and C++.

Fixes [Issue #3181](https://github.com/raspberrypi/pico-sdk/issues/3181). This pull request removes `#include <cassert.h>`, so the only thing in the `#ifdef _cplusplus` block is `extern C {`. This code change removes the error I get when trying to use clangd with pico-sdk and C++.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'ancientstraits/patch-1:ancientstraits/patch-1'
git switch 'ancientstraits/patch-1'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'develop'
git merge --no-ff 'ancientstraits/patch-1'
git switch 'ancientstraits/patch-1'
git rebase 'develop'
git switch 'develop'
git merge --ff-only 'ancientstraits/patch-1'
git switch 'ancientstraits/patch-1'
git rebase 'develop'
git switch 'develop'
git merge --no-ff 'ancientstraits/patch-1'
git switch 'develop'
git merge --squash 'ancientstraits/patch-1'
git switch 'develop'
git merge --ff-only 'ancientstraits/patch-1'
git switch 'develop'
git merge 'ancientstraits/patch-1'
git push origin 'develop'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3182
No description provided.