[MacPorts] #71092: tecla @1.6.3: error: incompatible function pointer types passing 'TputsRetType (TputsArgType)' (aka 'void (int)') to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types]

MacPorts noreply at macports.org
Mon Oct 14 00:33:09 UTC 2024


#71092: tecla @1.6.3: error: incompatible function pointer types passing
'TputsRetType (TputsArgType)' (aka 'void (int)') to parameter of type 'int
(*)(int)' [-Wincompatible-function-pointer-types]
---------------------+-----------------------
  Reporter:  2-of-1  |      Owner:  michaelld
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:  sequoia
      Port:  tecla   |
---------------------+-----------------------

Comment (by ryandesign):

 The project's code evidently contains a mistake where one type of
 information is being passed to a function that expects a different type of
 information. Compilers have issued warnings about incompatible function
 pointer types for years. Now, the latest compilers no longer tolerate such
 mistakes and consider them to be errors. Ideally, someone would fix the
 problem so that the correct type of information is being passed. Less
 ideally, the error could be downgraded back to a warning.

 Usually mistakes in a project's code should be reported to its developers
 so they can fix it. I'm not sure if this project is still being developed
 though, since the last version was released ten years ago.

-- 
Ticket URL: <https://trac.macports.org/ticket/71092#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list