Changeset 350b07a in rtems


Ignore:
Timestamp:
Aug 29, 2018, 5:34:58 PM (9 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
76ac42ff
Parents:
60702ab
git-author:
Joel Sherrill <joel@…> (08/29/18 17:34:58)
git-committer:
Joel Sherrill <joel@…> (08/29/18 17:52:10)
Message:

monlib.[ch]: Fix warnings for external vs internal use of .h

Location:
bsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/csb337/umon/monlib.c

    r60702ab r350b07a  
    4444 */
    4545
     46#define _INSIDE_MONLIB
    4647#include <umon/monlib.h>
    4748
  • bsps/include/umon/monlib.h

    r60702ab r350b07a  
    149149extern struct tfshdr *mon_tfsstat(char *filename);
    150150
    151 #if SHOWVARARGS
     151/*
     152 * The external caller should see these as variable argument methods but
     153 * they are not implemented that way, so let monlib.c prototype them internally
     154 * when building that file.
     155 */
     156#ifndef _INSIDE_MONLIB
    152157extern void mon_memtrace(char *fmt, ...);
    153158extern int mon_printf(char *fmt, ...);
    154159extern int mon_cprintf(char *fmt, ...);
    155160extern int mon_sprintf(char *,char *fmt, ...);
    156 #else
    157 extern void mon_memtrace();
    158 extern int mon_printf();
    159 extern int mon_cprintf();
    160 extern int mon_sprintf();
    161161#endif
    162162
Note: See TracChangeset for help on using the changeset viewer.