File: dietwarning.h

package info (click to toggle)
dietlibc 0.33~cvs20120325-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 9,616 kB
  • sloc: ansic: 57,783; asm: 11,605; cpp: 1,856; makefile: 739; sh: 104; perl: 62
file content (23 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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