Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
03ce316c
Commit
03ce316c
authored
Oct 1, 2014
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Build: Added macro PIKE_UNUSED to avoid name-clash.
parent
b1f1968c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/global.h
+8
-5
8 additions, 5 deletions
src/global.h
with
8 additions
and
5 deletions
src/global.h
+
8
−
5
View file @
03ce316c
...
...
@@ -562,22 +562,25 @@ typedef struct p_wchar_p
/* Suppress compiler warnings for unused parameters if possible. The mangling of
argument name is required to catch when an unused argument later is used without
removing the annotation. */
#ifndef UNUSED
#ifndef
PIKE_
UNUSED
# ifdef __GNUC__
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
# define
PIKE_
UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
# else
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED)
# define PIKE_UNUSED(x) PIKE_CONCAT(x,_UNUSED)
# endif
#endif
#ifndef UNUSED
# define UNUSED(x) PIKE_UNUSED(x)
#endif
#ifdef PIKE_DEBUG
# define DEBUGUSED(x) x
#else
# define DEBUGUSED(x) UNUSED(x)
# define DEBUGUSED(x)
PIKE_
UNUSED(x)
#endif
#ifdef DEBUG_MALLOC
# define DMALLOCUSED(x) x
#else
# define DMALLOCUSED(x) UNUSED(x)
# define DMALLOCUSED(x)
PIKE_
UNUSED(x)
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment