Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > warning: conver...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1035 of 1062
Post > Topic >>

warning: conversion from `pointer to void'

by odt@[EMAIL PROTECTED] (Olaf Dietrich) Apr 18, 2008 at 09:17 AM

#if 0

  The following example code compiled with

    $ lcc  -c fp.c -o fp.o

  produces these warnings:

    fp.c:2: warning: conversion from `pointer to void' to `pointer to int
function(int)' is compiler dependent
    fp.c:3: warning: conversion from `pointer to void' to `pointer to int
function(int)' is compiler dependent

  I wonder if this is required or justified by the C89 or C99
  standard. (E.g. "gcc -Wall -pedantic -ansi" does not complain.)

  Olaf

#endif

#include <stdlib.h>
int (*func1)(int) = NULL;
int (*func2)(int) = (void *)0;
 




 1 Posts in Topic:
warning: conversion from `pointer to void'
odt@[EMAIL PROTECTED] (O  2008-04-18 09:17:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:01:12 CDT 2008.