Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e05ab0cf
Commit
e05ab0cf
authored
Oct 10, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence clang 13 -Wunused-but-set-variable for Bison
parent
56b97ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
sql/CMakeLists.txt
sql/CMakeLists.txt
+9
-2
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+5
-0
No files found.
sql/CMakeLists.txt
View file @
e05ab0cf
# Copyright (c) 2006, 2014, Oracle and/or its affiliates.
# Copyright (c) 2010, 20
18, MariaDB Corporation
# Copyright (c) 2010, 20
22, MariaDB Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -145,7 +145,14 @@ SET (SQL_SOURCE
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_token.h
${
MYSYS_LIBWRAP_SOURCE
}
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Clang"
AND
NOT CMAKE_C_COMPILER_VERSION VERSION_LESS
"13.0.0"
)
ADD_COMPILE_FLAGS
(
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc_ora.cc
COMPILE_FLAGS
"-Wno-unused-but-set-variable"
)
ENDIF
()
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
OR
CMAKE_SYSTEM_NAME MATCHES
"Windows"
OR
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
OR
...
...
storage/innobase/CMakeLists.txt
View file @
e05ab0cf
...
...
@@ -371,6 +371,11 @@ IF(MSVC)
# on generated file.
TARGET_COMPILE_OPTIONS
(
innobase PRIVATE
"/wd4065"
)
ENDIF
()
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Clang"
AND
NOT CMAKE_C_COMPILER_VERSION VERSION_LESS
"13.0.0"
)
ADD_COMPILE_FLAGS
(
pars/pars0grm.cc fts/fts0pars.cc
COMPILE_FLAGS
"-Wno-unused-but-set-variable"
)
ENDIF
()
IF
(
NOT
(
PLUGIN_INNOBASE STREQUAL DYNAMIC
))
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/extra/mariabackup
${
CMAKE_BINARY_DIR
}
/extra/mariabackup
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment