google / benchmark

A microbenchmark support library
Apache License 2.0
8.69k stars 1.59k forks source link

Address warnings on NVIDIA nvc++ #1573

Closed HFTrader closed 1 year ago

HFTrader commented 1 year ago

Types of warnings were being generated:

  1. Deprecated warnings - solved by defining the relevant BENCHMARK_* macros for nvc++ and adding pragma suppress on a couple of .cc files
  2. Setup/TearDown const vs non-const partial override - solved by adding non-const version. Alternatively I could add a respective suppress but I found not providing an override was dangerous?
  3. Static but not referenced - added diagnostic suppress for that file Related to #1556