Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d38799aa
Commit
d38799aa
authored
Dec 05, 2002
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: eliminate spurious unused variables warning w.r.t. ACPI_MODULE_NAME
parent
11acafcd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
drivers/acpi/include/acmacros.h
drivers/acpi/include/acmacros.h
+2
-2
drivers/acpi/include/platform/acgcc.h
drivers/acpi/include/platform/acgcc.h
+8
-1
No files found.
drivers/acpi/include/acmacros.h
View file @
d38799aa
/******************************************************************************
/******************************************************************************
*
*
* Name: acmacros.h - C macros for the entire subsystem.
* Name: acmacros.h - C macros for the entire subsystem.
* $Revision: 13
2
$
* $Revision: 13
3
$
*
*
*****************************************************************************/
*****************************************************************************/
...
@@ -398,7 +398,7 @@
...
@@ -398,7 +398,7 @@
#ifdef ACPI_DEBUG_OUTPUT
#ifdef ACPI_DEBUG_OUTPUT
#define ACPI_MODULE_NAME(name) static char *_THIS_MODULE = name;
#define ACPI_MODULE_NAME(name) static char
ACPI_UNUSED_VAR
*_THIS_MODULE = name;
/*
/*
* Function entry tracing.
* Function entry tracing.
...
...
drivers/acpi/include/platform/acgcc.h
View file @
d38799aa
/******************************************************************************
/******************************************************************************
*
*
* Name: acgcc.h - GCC specific defines, etc.
* Name: acgcc.h - GCC specific defines, etc.
* $Revision: 2
3
$
* $Revision: 2
4
$
*
*
*****************************************************************************/
*****************************************************************************/
...
@@ -31,4 +31,11 @@
...
@@ -31,4 +31,11 @@
*/
*/
#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 4, 5)))
#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 4, 5)))
/* Some compilers complain about unused variables. Sometimes we don't want to
* use all the variables (most specifically for _THIS_MODULE). This allow us
* to to tell the compiler warning in a per-variable manner that a variable
* is unused.
*/
#define ACPI_UNUSED_VAR __attribute__ ((unused))
#endif
/* __ACGCC_H__ */
#endif
/* __ACGCC_H__ */
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