mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-18 06:59:57 -05:00
make newer gcc shut up
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1817 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
ef83a19525
commit
9be0d70ea7
2 changed files with 2 additions and 3 deletions
|
|
@ -68,5 +68,5 @@ void pa_object_unref(pa_object *o) {
|
||||||
int pa_object_check_type(const char *type_name) {
|
int pa_object_check_type(const char *type_name) {
|
||||||
pa_assert(type_name);
|
pa_assert(type_name);
|
||||||
|
|
||||||
return type_name == "pa_object" || strcmp(type_name, "pa_object") == 0;
|
return strcmp(type_name, "pa_object") == 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,7 @@ static inline pa_object* pa_object_cast(void *o) {
|
||||||
#define PA_DEFINE_CHECK_TYPE(c, parent) \
|
#define PA_DEFINE_CHECK_TYPE(c, parent) \
|
||||||
int c##_check_type(const char *type) { \
|
int c##_check_type(const char *type) { \
|
||||||
pa_assert(type); \
|
pa_assert(type); \
|
||||||
if (type == #c || \
|
if (strcmp(type, #c) == 0) \
|
||||||
strcmp(type, #c) == 0) \
|
|
||||||
return 1; \
|
return 1; \
|
||||||
return parent##_check_type(type); \
|
return parent##_check_type(type); \
|
||||||
} \
|
} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue