Changeset 0a6d12a in rtems


Ignore:
Timestamp:
Mar 14, 2015, 4:04:00 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
217b3f53
Parents:
be277dd
git-author:
Joel Sherrill <joel.sherrill@…> (03/14/15 16:04:00)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/17/15 15:05:06)
Message:

libmisc/monitor/mon-task.c: Disable deprecated warning for use of notepads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-task.c

    rbe277dd r0a6d12a  
    4646    canonical_task->modes = 0; /* XXX FIX ME.... rtems_thread->current_modes; */
    4747    canonical_task->attributes = 0 /* XXX FIX ME rtems_thread->API_Extensions[ THREAD_API_RTEMS ]->attribute_set */;
    48     (void) memcpy(canonical_task->notepad, api ->Notepads, sizeof(canonical_task->notepad));
     48
     49  /*
     50   * We know this is deprecated and don't want a warning on every BSP built.
     51   */
     52  #pragma GCC diagnostic push
     53  #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     54  if ( rtems_configuration_get_notepads_enabled() ) {
     55    (void) memcpy(
     56      canonical_task->notepad, api ->Notepads, sizeof(canonical_task->notepad));
     57  }
     58  #pragma GCC diagnostic pop
     59
    4960/* XXX more to fix */
    5061/*
     
    99110
    100111    length += rtems_monitor_pad(72, length);
    101     length += rtems_monitor_dump_notepad(monitor_task->notepad);
     112
     113    /*
     114     * We know this is deprecated and don't want a warning on every BSP built.
     115     */
     116    #pragma GCC diagnostic push
     117    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     118      length += rtems_monitor_dump_notepad(monitor_task->notepad);
     119    #pragma GCC diagnostic pop
     120
    102121    fprintf(stdout,"\n");
    103122}
Note: See TracChangeset for help on using the changeset viewer.