diff options
author | monty@mysql.com <> | 2006-02-25 17:46:30 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2006-02-25 17:46:30 +0200 |
commit | 54274976e7b4a9a28e94a6f0b4f8d064140248db (patch) | |
tree | 563e06651e9166da59ba432a876beee5175b6229 /sql/parse_file.h | |
parent | a7df038d168889ae3ba8e81f6303c779c0707fae (diff) | |
download | mariadb-git-54274976e7b4a9a28e94a6f0b4f8d064140248db.tar.gz |
Fixed compiler warnings from gcc 4.0.2:
- Added empty constructors and virtual destructors to many classes and structs
- Removed some usage of the offsetof() macro to instead use C++ class pointers
Diffstat (limited to 'sql/parse_file.h')
-rw-r--r-- | sql/parse_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/parse_file.h b/sql/parse_file.h index afa88da2ead..0d5a215fe1a 100644 --- a/sql/parse_file.h +++ b/sql/parse_file.h @@ -49,6 +49,8 @@ struct File_option class Unknown_key_hook { public: + Unknown_key_hook() {} /* Remove gcc warning */ + virtual ~Unknown_key_hook() {} /* Remove gcc warning */ virtual bool process_unknown_string(char *&unknown_key, gptr base, MEM_ROOT *mem_root, char *end)= 0; }; @@ -59,6 +61,7 @@ public: class File_parser_dummy_hook: public Unknown_key_hook { public: + File_parser_dummy_hook() {} /* Remove gcc warning */ virtual bool process_unknown_string(char *&unknown_key, gptr base, MEM_ROOT *mem_root, char *end); }; |