10

How Can I turn off warnings in swi-prolog.

Clauses of XXX/AA are not together in the source-file

is very annoying.

peter.cyc
  • 1,763
  • 1
  • 12
  • 19
Juanjo Conti
  • 28,823
  • 42
  • 111
  • 133

2 Answers2

11

Instead, you could fix the warning.

The discontiguous directive is needed when the clauses of a static (compiled) predicate cannot be compiled as a single unit. This happens when the clause definitions are:

  • Not contiguous
  • Exceed the maximum number of clauses
Kevin Crowell
  • 10,082
  • 4
  • 35
  • 51
8

You can turn off these warnings with style_check using :-style_check(-discontiguous)..

For example, you can also put off the warning about singleton variables with :-style_check(-singleton).

xrdty
  • 886
  • 2
  • 10
  • 22