Go to Post Don't put any weight into the OPR. It's ugly and its momma dresses it funny. - wilsonmw04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2007, 13:14
htwiz2002's Avatar
htwiz2002 htwiz2002 is offline
Htwizard
AKA: Anthony Takata Bawahawba
#1290
Team Role: Engineer
 
Join Date: Jan 2004
Location: Chandler, AZ
Posts: 23
htwiz2002 will become famous soon enough
Exclamation Pointers/References?

I'm trying to write a function that reads values from eeprom and stores their values into variables passed into the function. This is what it looks like:


Code:
void Terminal_eepromreadset(unsigned char set, unsigned char *data1, unsigned char *data2, unsigned char *data3, unsigned char *data4)
{
    //Consolidate this on verify that it works!!!
    unsigned int address = set * 4 -1;
    //*data1 = EEPROM_Read(address + 1);
    //*data2 = EEPROM_Read(address + 2);
    //*data3 = EEPROM_Read(address + 3);
    //*data4 = EEPROM_Read(address + 4);
}
...
// later on in another function this is how it's called:
unsigned char version1;
unsigned char version2;
unsigned char version3
unsigned char version4;
Terminal_eepromreadset(0, version1, version2, version3, version4); break;
version1 - version 4 are all inited with 0.
For some reason I get the following warnings when I compile:
Code:
C:\frc\FrcCode_2007_8722\terminal.c:550:Warning [2054] suspicious pointer conversion
C:\frc\FrcCode_2007_8722\terminal.c:550:Warning [2054] suspicious pointer conversion
C:\frc\FrcCode_2007_8722\terminal.c:550:Warning [2054] suspicious pointer conversion
C:\frc\FrcCode_2007_8722\terminal.c:550:Warning [2054] suspicious pointer conversion
line 550 is the call to the function. If i comment it out, everything is okay. But i want the function to work!

Any ideas?
__________________
TsAuKpAeTrA (Anthony)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Robonauts' Magnum Shoots 3 Pointers with WNBA Comets Natchez Extra Discussion 8 28-10-2006 20:26
Pointers in EasyC P1h3r1e3d13 Programming 6 13-03-2006 00:02
Can't use pointers nor refrences. cibressus53 Programming 9 05-11-2004 15:44
Pointers to structs? Jeff McCune Programming 2 17-02-2004 13:17
Laser Pointers.. archiver 2001 18 24-06-2002 00:08


All times are GMT -5. The time now is 17:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi