diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2018-03-15 18:13:55 -0700 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-03-20 16:16:04 +0800 |
commit | 392187428cee9f5062c1b989cbe83a0a5e17c861 (patch) | |
tree | 5de03c48ff0b33d23740b7d16356c01ff2e703df | |
parent | b70a92e61c25ebc144f54a0086cf715757330782 (diff) | |
download | libva-392187428cee9f5062c1b989cbe83a0a5e17c861.tar.gz |
Fix issue with static analysis scan
Coverity fails to parse the expanded value of
va_deprecated and causes the scan to abort. This
problem also affects downstream dependents of
va.h that get scanned with coverity, too. This
results in only partially-scanned code with the
following coverity errors:
"../../va/va.h", line 361: error #67: expected a "}"
VAProfileH264Baseline va_deprecated_enum = 5,
^
To fix this, we don't need to define a value for
va_deprecated or va_deprecated_enum during a
coverity scan.
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r-- | va/va.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -86,7 +86,7 @@ extern "C" { #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__COVERITY__) #define va_deprecated __attribute__((deprecated)) #if __GNUC__ >= 6 #define va_deprecated_enum va_deprecated |