Skip to content
  1. Nov 12, 2018
  2. Nov 02, 2018
    • Chris Kay's avatar
      sgi575: Fix GCC 7 -Wformat-truncation error · 172d8b29
      Chris Kay authored
      
      
      GCC 7 introduces the -Wformat-truncation warning and associated
      heuristics. This warning identifies potentially unexpected string
      truncation issues by statically range-checking the vararg inputs to
      snprintf().
      
      For us, GCC seems to be unable to reliably identify the bounds of the
      inputs (cluster_idx, core_idx) even though we have static guarantees in
      place as those guarantees are made in a separate compilation unit from
      the one in which the error occurs.
      
      This patch allows the compiler to inline the cluster/core count
      functions to ensure it can properly ascertain the proper bounds on the
      inputs to snprintf().
      
      Change-Id: I23447732b579f0c02d739744c59cbeb5bf774d6f
      Signed-off-by: Chris Kay's avatarChris Kay <chris.kay@arm.com>
      172d8b29
  3. Oct 30, 2018
  4. Oct 18, 2018
Loading