[lkml]   [2002]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] 2.5.21 kill warnings 4/19

On Mon, 10 Jun 2002, Andrew Morton wrote:
> wrt the __func__ thing: is it possible to do:
> #if (compiler version test)
> #define __FUNCTION__ __func__
> #endif
> to kill the 3.x warning?

#include <stdio.h>
#define __FUNCTION__ __func__

int main(int argc, char **argv) {
int i;

for (i = 0; i < argc; i++) {
printf(__FUNCTION__ " encountered argument ");
printf("%s\n", argv[i]);


Obviously, yes.

German attitude becoming | Thunder from the hill at ngforever
rightaway popular: |
"Get outa my way, | free inhabitant not directly
for I got a mobile phone!" | belonging anywhere

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:26    [W:0.142 / U:1.424 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site