File:  [DVB] / dietlibc / dietwarning.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 9 23:48:47 2001 UTC (23 years, 3 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
Implemented linker warnings!  Woohoo!
Added linker warnings to a couple of dangerous or bloaty functions.

#include "dietfeatures.h"

#ifdef WANT_LINKER_WARNINGS

#ifndef __ASSEMBLER__

#define link_warning(symbol,msg) \
  asm (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous");

#else

#define link_warning(symbol,msg) \
  .section .gnu.warning.##symbol ;\
  .string msg ;\
  .previous

#endif

#else

#define link_warning(foo,bar)

#endif

LinuxTV legacy CVS <linuxtv.org/cvs>