Skip to content

Commit 88222e2

Browse files
committed
Bug#18790490: NOISY COMPILER WARNINGS ON FREEBSD 10
Fix the following two header file compile warnings by backporting changes from mysql-trunk: /usr/include/sys/timeb.h:42:2: error: "this file includes <sys/timeb.h> which is deprecated" dict0dict.h:85:1: error: attribute declaration must precede definition
1 parent e81030c commit 88222e2

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

include/my_global.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,6 @@ C_MODE_END
333333
#ifdef HAVE_FCNTL_H
334334
#include <fcntl.h>
335335
#endif
336-
#ifdef HAVE_SYS_TIMEB_H
337-
#include <sys/timeb.h> /* Avoid warnings on SCO */
338-
#endif
339336
#if TIME_WITH_SYS_TIME
340337
# include <sys/time.h>
341338
# include <time.h>

storage/innobase/include/dict0dict.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ dict_get_referenced_table(
8282
mem_heap_t* heap); /*!< in: heap memory */
8383
/*********************************************************************//**
8484
Frees a foreign key struct. */
85-
UNIV_INTERN
85+
8686
void
8787
dict_foreign_free(
8888
/*==============*/

0 commit comments

Comments
 (0)