Google Groups Home
Help | Sign in
warning: conversion from `pointer to void'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Olaf Dietrich  
View profile
 More options Apr 18, 5:17 am
Newsgroups: comp.compilers.lcc
From: o...@dtrx.de (Olaf Dietrich)
Date: Fri, 18 Apr 2008 09:17:58 +0000 (UTC)
Local: Fri, Apr 18 2008 5:17 am
Subject: warning: conversion from `pointer to void'
#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;


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google