Ignore:
Timestamp:
May 9, 2014, 10:17:32 AM (11 years ago)
Author:
porquet
Message:

vci_mem_cache: fix warning with gcc 4.9.0

Default values for a function of a templated class should be specified
the first time gcc encounters the declaration, that is in the header of
that class.

For more info, see http://gcc.gnu.org/gcc-4.9/porting_to.html

Location:
trunk/modules/vci_mem_cache/caba/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h

    r663 r683  
    517517
    518518      void reset_counters();
    519       void print_stats(bool activity_counters, bool stats);
     519      void print_stats(bool activity_counters = true, bool stats = true);
    520520      void print_trace( size_t detailed = 0 );
    521521      void cache_monitor(addr_t addr);
  • trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp

    r663 r683  
    845845
    846846    /////////////////////////////////////////
    847     tmpl(void)::print_stats(bool activity_counters = true, bool stats = true)
     847    tmpl(void)::print_stats(bool activity_counters, bool stats)
    848848    /////////////////////////////////////////
    849849    {
Note: See TracChangeset for help on using the changeset viewer.