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
3fbc91f6
Commit
3fbc91f6
authored
Mar 01, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow -Wuninitialized without -O only for gcc 4.4 and upper
parent
1e4ef6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
BUILD/SETUP.sh
BUILD/SETUP.sh
+17
-1
No files found.
BUILD/SETUP.sh
View file @
3fbc91f6
...
...
@@ -134,7 +134,6 @@ valgrind_configs="--with-valgrind"
#
# Used in -debug builds
debug_cflags
=
"-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG"
debug_cflags
=
"
$debug_cflags
-DFORCE_INIT_OF_VARS -Wuninitialized"
debug_cflags
=
"
$debug_cflags
-DSAFEMALLOC -DPEDANTIC_SAFEMALLOC"
error_inject
=
"--with-error-inject "
#
...
...
@@ -209,6 +208,23 @@ if test -z "$CXX" ; then
CXX
=
gcc
fi
#
# Set -Wuninitialized to debug flags for gcc 4.4 and above
# because it is allowed there without -O
#
if
test
`
$CC
-v
2>&1 |
tail
-1
|
sed
's/ .*$//'
`
=
'gcc'
;
then
GCCVERSION
=
`
cc
-v
2>&1 |
tail
-1
|
sed
's/^\w\w* \w\w* //'
|
sed
's/ .*$//'
`
GCCV1
=
`
echo
$GCCVERSION
|
sed
's/\..*$//'
`
GCCV2
=
`
echo
$GCCVERSION
|
sed
's/[0-9][0-9]*\.//'
|sed
's/\..*$//'
`
if
test
'('
"
$GCCV1
"
-gt
'4'
')'
-o
\
'('
'('
"
$GCCV1
"
-eq
'4'
')'
-a
'('
"
$GCCV2
"
-ge
'4'
')'
')'
then
debug_cflags
=
"
$debug_cflags
-DFORCE_INIT_OF_VARS -Wuninitialized"
fi
fi
# If ccache (a compiler cache which reduces build time)
# (http://samba.org/ccache) is installed, use it.
# We use 'grep' and hope 'grep' will work as expected
...
...
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