summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/sygus_sampler.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-06-20 20:28:50 -0700
committerGitHub <noreply@github.com>2018-06-20 20:28:50 -0700
commit5f997ea7363bd29ae53b57051ebac8d1da8f9439 (patch)
treeddcae46a71db87da31ca6d83e3dd3ee9098ace22 /src/theory/quantifiers/sygus_sampler.h
parentdd0bd217e222b2db5fac9aedee3aacee8a28d0b1 (diff)
Fix warnings and enable -Wnon-virtual-dtor warning (#2079)
This commit fixes warnings for an unused variable, comparison of two different types and add virtual destructors to classes that were previously missing them. It also enables the -Wnon-virtual-dtor warning which warns about any class definition with virtual methods that does not have a virtual destructor (except if the destructor is protected). This flag is supported by both clang and GCC and not enabled by default.
Diffstat (limited to 'src/theory/quantifiers/sygus_sampler.h')
-rw-r--r--src/theory/quantifiers/sygus_sampler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theory/quantifiers/sygus_sampler.h b/src/theory/quantifiers/sygus_sampler.h
index 5e0a24dd2..1b4d3aedd 100644
--- a/src/theory/quantifiers/sygus_sampler.h
+++ b/src/theory/quantifiers/sygus_sampler.h
@@ -278,6 +278,8 @@ class SygusSampler : public LazyTrieEvaluator
class NotifyMatch
{
public:
+ virtual ~NotifyMatch() {}
+
/**
* A notification that s is equal to n * { vars -> subs }. This function
* should return false if we do not wish to be notified of further matches.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback