Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
53e51f04
Commit
53e51f04
authored
Feb 21, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: print a warning if doing var_Set on a void variable.
parent
61d90960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/misc/variables.c
src/misc/variables.c
+7
-1
No files found.
src/misc/variables.c
View file @
53e51f04
...
@@ -762,6 +762,12 @@ int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
...
@@ -762,6 +762,12 @@ int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
assert
(
expected_type
==
0
||
assert
(
expected_type
==
0
||
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
==
expected_type
);
#ifndef NDEBUG
/* Alert if the type is VLC_VAR_VOID */
if
(
(
p_var
->
i_type
&
VLC_VAR_TYPE
)
==
VLC_VAR_VOID
)
msg_Warn
(
p_this
,
"Calling var_Set on the void variable '%s' (0x%04x)"
,
psz_name
,
p_var
->
i_type
);
#endif
WaitUnused
(
p_this
,
p_var
);
WaitUnused
(
p_this
,
p_var
);
...
@@ -825,7 +831,7 @@ int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
...
@@ -825,7 +831,7 @@ int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
#ifndef NDEBUG
#ifndef NDEBUG
/* Alert if the type is VLC_VAR_VOID */
/* Alert if the type is VLC_VAR_VOID */
if
(
(
p_var
->
i_type
&
VLC_VAR_TYPE
)
==
VLC_VAR_VOID
)
if
(
(
p_var
->
i_type
&
VLC_VAR_TYPE
)
==
VLC_VAR_VOID
)
msg_Warn
(
p_this
,
"Calling var_Get
Void
on the void variable '%s' (0x%04x)"
,
psz_name
,
p_var
->
i_type
);
msg_Warn
(
p_this
,
"Calling var_Get on the void variable '%s' (0x%04x)"
,
psz_name
,
p_var
->
i_type
);
#endif
#endif
/* Duplicate value if needed */
/* Duplicate value if needed */
...
...
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