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

Rename asprintf to _asprintf to avoid unused-result warnings #337

Merged
merged 2 commits into from
Apr 6, 2024

Conversation

Leixb
Copy link
Contributor

@Leixb Leixb commented Apr 3, 2024

Changes made

fixes #335

It would probably be best to actually check the return values for errors on writing. Maybe somethign along these lines:

#define ASSERT_ASPRINTF(x) { if (x < 0) {fprintf(stderr, "Error formatting output"); }

Checklist

  • I adjusted the README (if needed)
  • For new features in HeadsetControl: I discussed it beforehand in Issues or Discussions and adhered to the wiki

@Sapd Sapd merged commit bd28a2e into Sapd:master Apr 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants