Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6332625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:18:00+00:00 2026-05-24T18:18:00+00:00

see in one code i have written void my_function() { INT32 i; /* Variable

  • 0

see in one code i have written

void my_function()
{
INT32 i;    /* Variable for iteration */ 
/* If system is little-endian, store bytes in array as reverse order */
#ifdef LITTLE   
   {    
    // i m using i for operating one loop 
   }
#endif

 /* If the system is big-endian, store bytes in array as forward order */
#ifdef  BIG 
   {
   // using i for loop
   }
#endif
return;
 }

by compiling this code with -Wall flag it shows

 warning: unused variable ‘i’      

why?
how can i remove this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:18:01+00:00Added an answer on May 24, 2026 at 6:18 pm

    hey i got the answer…

    see BIG & LITTLE are preposser flag & they are given at compile time.
    when i was compiling my project with make file i was giving this flag at compile time but while testing each individual file i was compiling like

    gcc -Wall -c filename.c 
    

    This was comming because i havent given any flag so compiler going to neglet that much portion of code & i was getting warning.

    gcc -Wall -c -LITTLE filename.c 
    

    works perfectly…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I`m reading the code of some open source project. I see that in one
Do bubble sorts have any real world use? Every time I see one mentioned,
I have one text input and one button (see below). How can I use
I have replicated a stripped-down version of my code that has recently been re-written
JAVA Code Here is some part of my code that I have written in
I have written a code to move a button as it is dragged. I
I have written two methods that take and return a string. One converts from
I have all written code and i want to this code standarise by php
I have a program written in C, which includes 2 functions, one function is
I have written a working token parser based on the code shown at spirit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.