[MDEV-7400] Fix compiler warnings caused by redefinition of MYSQL_DATADIR, SHAREDIR and PLUGINDIR Created: 2015-01-02  Updated: 2016-07-12  Resolved: 2016-07-12

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1.2
Fix Version/s: N/A

Type: Bug Priority: Trivial
Reporter: Jan Lindström (Inactive) Assignee: Sergei Golubchik
Resolution: Cannot Reproduce Votes: 0
Labels: None


 Description   

/home/jan/mysql/10.1-orig/include/my_config.h:619:0: warning: "SHAREDIR" redefined [enabled by default]
 #define SHAREDIR "/usr/local/mysql/share"
 ^
In file included from /home/jan/mysql/10.1-orig/sql/log.h:20:0,
                 from /home/jan/mysql/10.1-orig/storage/xtradb/row/row0merge.cc:26:
/home/jan/mysql/10.1-orig/sql/unireg.h:40:0: note: this is the location of the previous definition
 #define SHAREDIR "share/"
 ^
In file included from /home/jan/mysql/10.1-orig/include/my_global.h:75:0,
                 from /home/jan/mysql/10.1-orig/sql/sql_plugin.h:28,
                 from /home/jan/mysql/10.1-orig/sql/structs.h:23,
                 from /home/jan/mysql/10.1-orig/sql/unireg.h:169,
                 from /home/jan/mysql/10.1-orig/sql/log.h:20,
                 from /home/jan/mysql/10.1-orig/storage/xtradb/row/row0merge.cc:26:
/home/jan/mysql/10.1-orig/include/my_config.h:621:0: warning: "MYSQL_DATADIR" redefined [enabled by default]
 #define MYSQL_DATADIR "/usr/local/mysql/data"
 ^
In file included from /home/jan/mysql/10.1-orig/sql/log.h:20:0,
                 from /home/jan/mysql/10.1-orig/storage/xtradb/row/row0merge.cc:26:
/home/jan/mysql/10.1-orig/sql/unireg.h:37:0: note: this is the location of the previous definition
 #define MYSQL_DATADIR  "data/"
 ^
In file included from /home/jan/mysql/10.1-orig/include/my_global.h:75:0,
                 from /home/jan/mysql/10.1-orig/sql/sql_plugin.h:28,
                 from /home/jan/mysql/10.1-orig/sql/structs.h:23,
                 from /home/jan/mysql/10.1-orig/sql/unireg.h:169,
                 from /home/jan/mysql/10.1-orig/sql/log.h:20,
                 from /home/jan/mysql/10.1-orig/storage/xtradb/row/row0merge.cc:26:
/home/jan/mysql/10.1-orig/include/my_config.h:623:0: warning: "PLUGINDIR" redefined [enabled by default]
 #define PLUGINDIR "/usr/local/mysql/lib/plugin"
 ^
In file included from /home/jan/mysql/10.1-orig/sql/log.h:20:0,
                 from /home/jan/mysql/10.1-orig/storage/xtradb/row/row0merge.cc:26:
/home/jan/mysql/10.1-orig/sql/unireg.h:43:0: note: this is the location of the previous definition
 #define PLUGINDIR "lib/plugin"
 ^



 Comments   
Comment by Sergei Golubchik [ 2016-07-12 ]

Cannot repeat that, it was supposedly fixed meanwhile

Generated at Thu Feb 08 07:19:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.