Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
83c7e1e1
Commit
83c7e1e1
authored
Jan 02, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: disable C++ RTTI
RTTI adds overhead to the binary, and we don't need that.
parent
a6371e2e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
configure.ac
configure.ac
+1
-0
DatabaseGlue.cxx
src/DatabaseGlue.cxx
+4
-1
No files found.
configure.ac
View file @
83c7e1e1
...
...
@@ -1542,6 +1542,7 @@ if test "x$enable_debug" = xno; then
AX_APPEND_COMPILE_FLAGS([-fno-threadsafe-statics])
AX_APPEND_COMPILE_FLAGS([-fmerge-all-constants])
AX_APPEND_COMPILE_FLAGS([-fno-exceptions])
AX_APPEND_COMPILE_FLAGS([-fno-rtti])
AC_LANG_POP
AX_APPEND_LINK_FLAGS([-Wl,--gc-sections])
...
...
src/DatabaseGlue.cxx
View file @
83c7e1e1
...
...
@@ -49,6 +49,7 @@ extern "C" {
static
Database
*
db
;
static
bool
db_is_open
;
static
bool
is_simple
;
bool
db_init
(
const
struct
config_param
*
param
,
GError
**
error_r
)
...
...
@@ -58,6 +59,8 @@ db_init(const struct config_param *param, GError **error_r)
const
char
*
plugin_name
=
config_get_block_string
(
param
,
"plugin"
,
"simple"
);
is_simple
=
strcmp
(
plugin_name
,
"simple"
)
==
0
;
const
DatabasePlugin
*
plugin
=
GetDatabasePluginByName
(
plugin_name
);
if
(
plugin
==
NULL
)
{
g_set_error
(
error_r
,
db_quark
(),
0
,
...
...
@@ -104,7 +107,7 @@ db_is_simple(void)
{
assert
(
db
==
NULL
||
db_is_open
);
return
dynamic_cast
<
SimpleDatabase
*>
(
db
)
!=
nullptr
;
return
is_simple
;
}
struct
directory
*
...
...
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