Changeset 217b3f53 in rtems


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

Disable deprecated warning on implementation of deprecated methods

Location:
cpukit/rtems/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/clockget.c

    r0a6d12a r217b3f53  
    2525#include <rtems/score/thread.h>
    2626#include <rtems/score/watchdog.h>
     27
     28/*
     29 * Ignore deprecated warning when compiling this method. We know
     30 * this method is deprecated.
     31 */
     32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    2733
    2834rtems_status_code rtems_clock_get(
  • cpukit/rtems/src/taskgetnote.c

    r0a6d12a r217b3f53  
    2222#include <rtems/score/threadimpl.h>
    2323#include <rtems/config.h>
     24
     25/*
     26 * We know this is deprecated and don't want a warning on every BSP built.
     27 */
     28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    2429
    2530rtems_status_code rtems_task_get_note(
  • cpukit/rtems/src/tasks.c

    r0a6d12a r217b3f53  
    6161#endif
    6262
     63  /*
     64   * We know this is deprecated and don't want a warning on every BSP built.
     65   */
     66  #pragma GCC diagnostic push
     67  #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    6368  if ( rtems_configuration_get_notepads_enabled() ) {
    6469    for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
    6570      api->Notepads[i] = 0;
    6671  }
     72  #pragma GCC diagnostic pop
    6773
    6874  return true;
     
    108114   *  Free per task variable memory
    109115   *
    110    *  Per Task Variables are only enabled in uniprocessor configurations
     116   *  Per Task Variables are only enabled in uniprocessor configurations.
    111117   */
    112118  #if !defined(RTEMS_SMP)
     119    /*
     120     * We know this is deprecated and don't want a warning on every BSP built.
     121     */
     122    #pragma GCC diagnostic push
     123    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    113124    do {
    114125      rtems_task_variable_t *tvp, *next;
     
    122133      }
    123134    } while (0);
     135    #pragma GCC diagnostic pop
    124136  #endif
    125137
  • cpukit/rtems/src/tasksetnote.c

    r0a6d12a r217b3f53  
    2222#include <rtems/score/threadimpl.h>
    2323#include <rtems/config.h>
     24
     25/*
     26 * We know this is deprecated and don't want a warning on every BSP built.
     27 */
     28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    2429
    2530rtems_status_code rtems_task_set_note(
  • cpukit/rtems/src/taskvariable_invoke_dtor.c

    r0a6d12a r217b3f53  
    2424#include <rtems/score/wkspace.h>
    2525
     26/*
     27 * We know this is deprecated and don't want a warning on every BSP built.
     28 */
     29#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     30
    2631void _RTEMS_Tasks_Invoke_task_variable_dtor(
    2732  Thread_Control        *the_thread,
  • cpukit/rtems/src/taskvariableadd.c

    r0a6d12a r217b3f53  
    2424#include <rtems/score/wkspace.h>
    2525#include <rtems/config.h>
     26
     27/*
     28 * We know this is deprecated and don't want a warning on every BSP built.
     29 */
     30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    2631
    2732rtems_status_code rtems_task_variable_add(
  • cpukit/rtems/src/taskvariabledelete.c

    r0a6d12a r217b3f53  
    2424#include <rtems/score/wkspace.h>
    2525#include <rtems/config.h>
     26
     27/*
     28 * We know this is deprecated and don't want a warning on every BSP built.
     29 */
     30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    2631
    2732rtems_status_code rtems_task_variable_delete(
  • cpukit/rtems/src/taskvariableget.c

    r0a6d12a r217b3f53  
    2626
    2727/*
    28  *  rtems_task_variable_get
    29  *
    30  *  This directive gets the value of a task variable.
     28 * We know this is deprecated and don't want a warning on every BSP built.
    3129 */
     30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    3231
    3332rtems_status_code rtems_task_variable_get(
Note: See TracChangeset for help on using the changeset viewer.