kopia lustrzana https://gitlab.com/sane-project/backends
Added compiler attribute __unused__ for unused variables/functions.
rodzic
b5a13b868c
commit
1abeb942c2
|
@ -20,6 +20,26 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Compiler related options
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
|
||||||
|
/* __unused tells the compiler a variable is unused, so the
|
||||||
|
* compiler doesn't spit a warning. */
|
||||||
|
#define __unused__ __attribute__((unused))
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define __unused__
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SANE types and defines
|
||||||
|
*/
|
||||||
|
|
||||||
#define SANE_CURRENT_MAJOR 1
|
#define SANE_CURRENT_MAJOR 1
|
||||||
|
|
||||||
#define SANE_VERSION_CODE(major, minor, build) \
|
#define SANE_VERSION_CODE(major, minor, build) \
|
||||||
|
@ -34,10 +54,10 @@ extern "C" {
|
||||||
#define SANE_FALSE 0
|
#define SANE_FALSE 0
|
||||||
#define SANE_TRUE 1
|
#define SANE_TRUE 1
|
||||||
|
|
||||||
typedef unsigned char SANE_Byte;
|
typedef unsigned char SANE_Byte;
|
||||||
typedef int SANE_Word;
|
typedef int SANE_Word;
|
||||||
typedef SANE_Word SANE_Bool;
|
typedef SANE_Word SANE_Bool;
|
||||||
typedef SANE_Word SANE_Int;
|
typedef SANE_Word SANE_Int;
|
||||||
typedef char SANE_Char;
|
typedef char SANE_Char;
|
||||||
typedef SANE_Char *SANE_String;
|
typedef SANE_Char *SANE_String;
|
||||||
typedef const SANE_Char *SANE_String_Const;
|
typedef const SANE_Char *SANE_String_Const;
|
||||||
|
|
Ładowanie…
Reference in New Issue