Fix compilation for Darwin i386, and hide "unused variable" notes #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "darwin-32-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Testing compilation of Kraft on Darwin (Mac OS X) i386, I got multiple errors like
That's probably because on Darwin, compiling with PIC is the default (see the bottom of http://wiki.freepascal.org/PIC_information ). This pull request simply avoids defining
CPU386ASMForSinglePrecisionin this case.Also, I added
{$notes off}. Compiling Kraft.pas with notes enabled currently produces 37 notes about unused variables :)It's not a big deal of course, but it makes the compiler output less useful when compiling a larger application with Kraft.pas inside.
github.com/BeRo1985/kraft@9ca2fd2717Pull request closed