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

1.80 fails to build on Sonoma: error: incompatible function pointer types assigning to 'void (*)(const char *)' from 'void (char *)' [-Wincompatible-function-pointer-types] #15

Open
barracuda156 opened this issue Aug 11, 2024 · 0 comments

Comments

@barracuda156
Copy link

R-app 1.80 fails to build on macOS Sonoma with clang:

  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:110:23: error: incompatible function pointer types assigning to 'void (*)(const char *)' from 'void (char *)' [-Wincompatible-function-pointer-types]
      ptr_R_ShowMessage = Re_ShowMessage;
                        ^ ~~~~~~~~~~~~~~
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:111:23: error: incompatible function pointer types assigning to 'int (*)(const char *, unsigned char *, int, int)' from 'int (char *, unsigned char *, int, int)' [-Wincompatible-function-pointer-types]
      ptr_R_ReadConsole =  Re_ReadConsole;
                        ^  ~~~~~~~~~~~~~~
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:113:26: error: incompatible function pointer types assigning to 'void (*)(const char *, int, int)' from 'void (char *, int, int)' [-Wincompatible-function-pointer-types]
      ptr_R_WriteConsoleEx = Re_WriteConsoleEx;
                           ^ ~~~~~~~~~~~~~~~~~
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:124:20: error: incompatible function pointer types assigning to 'int (*)(const char *)' from 'int (char *)' [-Wincompatible-function-pointer-types]
      ptr_R_EditFile = Re_Edit;
                     ^ ~~~~~~~
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:126:21: error: incompatible function pointer types assigning to 'int (*)(int, const char **, const char **, const char *, Rboolean, const char *)' from 'int (int, char **, char **, char *, Rboolean, char *)' [-Wincompatible-function-pointer-types]
      ptr_R_ShowFiles = Re_ShowFiles;
                      ^ ~~~~~~~~~~~~
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_R-app/R-app/work/Mac-GUI-1.80/REngine/Rinit.m:127:21: error: incompatible function pointer types assigning to 'int (*)(int, const char **, const char **, const char *)' from 'int (int, char **, char **, char *)' [-Wincompatible-function-pointer-types]
      ptr_R_EditFiles = Re_EditFiles;
                      ^ ~~~~~~~~~~~~
  6 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant