Skip to content

Commit

Permalink
Adjust IGNORE_MESSAGES list based on fpc version
Browse files Browse the repository at this point in the history
This change adjusts the list of numbered fpc (hint/warning) messages we
suppress (IGNORE_MESSAGES value in the src/lib/compile.sh script) based
on the fpc version.

Otherwise, without this change, if we give an older fpc version a
message number that it doesn’t know, that apparently causes fpc to fail.
  • Loading branch information
sideshowbarker authored and domenic committed Jul 7, 2020
1 parent a64b4f1 commit 46f60c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
# you can set TESTCMD if you want to run a particular command instead of the obvious

# list of numbered fpc (hint/warning) messages to suppress
IGNORE_MESSAGES=3018,3123,3124,4035,4045,4055,4079,5024,5025,5036,5055,5057,5058,5059,5071,5092,5093,6058
if grep ^3\.2 <<< $(fpc -iV); then
IGNORE_MESSAGES=3018,3123,3124,4035,4045,4055,4079,5024,5025,5036,5055,5057,5058,5059,5071,5092,5093,6058
else
IGNORE_MESSAGES=3018,3123,3124,4035,4045,4055,4079,5024,5025,5036,5055,5057,5058,5059,5071,5092,5093
fi
# 3018 Warning: Constructor should be public
# 3123 Hint: "open array" not yet supported inside inline procedure/function
# 3124 Hint: Inlining disabled
Expand Down

0 comments on commit 46f60c9

Please sign in to comment.