Skip to content

Commit

Permalink
Fix issue with static analysis scan
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
uartie authored and xhaihao committed Mar 20, 2018
1 parent b70a92e commit 3921874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3921874

Please sign in to comment.