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

build from source fails with GCC >= 10 #134

Closed
fizwit opened this issue Jul 12, 2022 · 1 comment
Closed

build from source fails with GCC >= 10 #134

fizwit opened this issue Jul 12, 2022 · 1 comment

Comments

@fizwit
Copy link

fizwit commented Jul 12, 2022

Compile Error
Pointer retuned from a mismatch allocation function. Error is enabled with GCC 10 or greater with [-Werror=mismatched-new-delete]
Memory allocated with new is being "freed" with free(). Memory allocated with <new()> should be "freed" with <delete()>

Steps to reproduce the behavior:
Use GCC 10 or greater
git clone
cd ivar
./autogen.sh
./configure
make

ivar.cpp:502:11: error: ‘void free(void*)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
  502 |       free(files);
      |       ~~~~^~~~~~~

Expected behavior
Should build without compile errors

Platform

  • OS: Ubuntu 18.04
  • GCC 11.2.0
@cmaceves
Copy link
Collaborator

addressed in PR #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants