This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler warning - migrating from CCS3 to CCS6

Hello,


We have just migrated from CCS3.3 to CCS6 and have imported all of our code - including the CSL for the 5501. When building we are given the following warning.


warning #1107-D: conversion from integer to small pointer

The line with the objectionable line is given below

variable = *(unsigned short *)(GPIO_buffer)|GPIO_info;

The function containing the objectionable line is below

void GPIOCtrl(int GPIO_Test, int GPIO_info)            
                                                
{                                               
       int variable;                                              
       if (GPIO_Test == 1)
       {
              variable = *(unsigned short *)(GPIO_buffer)|GPIO_info;
              *(unsigned short *)(GPIO_buffer) = variable;           
              *(ioport int *)IODATA = variable;                      
       }
       else
       {
              variable = *(unsigned short *)(GPIO_buffer)&GPIO_info;                 /* test to see if currently zero             */
              if (variable == GPIO_info)                                                                        /* This section cares for when data=0        */
              {      
                     variable = *(unsigned short *)(GPIO_buffer)^GPIO_info;            /* data XOR'd to non zero value              */
                     *(unsigned short *)(GPIO_buffer) = variable;                                /* data buffer loaded with new               */
                     *(ioport int *)IODATA = variable;                                                        /* buffer value written to GPIO Port         */
              }
       }
}