diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-19 17:20:15 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-19 17:20:15 -0300 |
commit | 2417701e46338793810f52eec317ecbd5d3c1e3d (patch) | |
tree | e8bb057569592ba9675e0119dbc1c707f56fc8d8 /mysys/my_new.cc | |
parent | 5d13d4f34e7296cc3ef1894ff44051e04247f4a0 (diff) | |
download | mariadb-git-2417701e46338793810f52eec317ecbd5d3c1e3d.tar.gz |
Bug#43461: invalid comparison with string literal in default.c
Don't compare string literals as it results in unspecified behavior.
Diffstat (limited to 'mysys/my_new.cc')
-rw-r--r-- | mysys/my_new.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/my_new.cc b/mysys/my_new.cc index babfe04d695..7da54ffac87 100644 --- a/mysys/my_new.cc +++ b/mysys/my_new.cc @@ -46,8 +46,9 @@ void operator delete[] (void *ptr) throw () C_MODE_START -int __cxa_pure_virtual() { - assert("Pure virtual method called." == "Aborted"); +int __cxa_pure_virtual() +{ + assert(! "Aborted: pure virtual method called."); return 0; } |