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

  • SEARCH
  • Home
  • 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 832375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:21:13+00:00 2026-05-15T04:21:13+00:00

Preamble: I know, disabling warnings is not a good idea. Anyway, I have a

  • 0

Preamble: I know, disabling warnings is not a good idea. Anyway, I have a technical question about this.


Using GCC 3.3.6, I get the following warning:

choosing ... over ... because conversion sequence for the argument is better.

Now, I want to disable this warning as described in gcc warning options by providing an argument like

-Wno-theNameOfTheWarning

But I don’t know the name of the warning. How can I find out the name of the option that disables this warning?


I am not able to fix the warning, because it occurs in a header of an external library that can not be changed. It is in boost serialization (rx(s, count)):

template<class Archive, class Container, class InputFunction, class R>
inline void load_collection(Archive & ar, Container &s)
{
    s.clear();
    // retrieve number of elements
    collection_size_type count;
    unsigned int item_version;
    ar >> BOOST_SERIALIZATION_NVP(count);
    if(3 < ar.get_library_version())
        ar >> BOOST_SERIALIZATION_NVP(item_version);
    else
        item_version = 0;
    R rx;
    rx(s, count);
    std::size_t c = count;
    InputFunction ifunc;
    while(c-- > 0){
        ifunc(ar, s, item_version);
    }
}

I have already tried #pragma GCC system_header but this had no effect. Using -isystem instead of -I also does not work.

The general question remains is: I know the text of the warning message. But I do not know the correlation to the gcc warning options.

  • 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-15T04:21:13+00:00Added an answer on May 15, 2026 at 4:21 am

    You can find out what option is associated with a given warning by using the -fdiagnostics-show-option option:

    $ gcc -fdiagnostics-show-option -Wall foo.c
    foo.c: In function ‘main’:
    foo.c:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    

    And my two cents about this: assuming there’s no way to actually fix the warning, hopefully you can manage to disable the warning for a minimal amount of compilation, so that if you make a similar mistake in your own code, you’ll be warned.

    Edit: This appears to be -Wconversion. (Found by poking in the source – you can just grep for some of the warning text, and find the call to warning( OPT_W_conversion, ....)

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

Sidebar

Related Questions

Colleagues, Preamble. My question is more about best practices. I know one workaround. This
Preamble: This is very close to this question , and I have read this
Preamble So, this question has already been answered, but as it was my first
Preamble I'm asking this question because even though I've read through a lot of
Note: This is a follow up to this question . I have a legacy
Preamble Using VTK library with C++, quite often I have to write something like
Preamble: I am using ASP.NET 3.5 and AJAXControlToolkit. I am trying to use the
Preamble To build dynamic web-sites, we have to master at least four languages: HTML
PREAMBLE: the question is wildly obsolete. There's no more Google Checkout, no more Checkout
How can i create PDF thumbnails in TeXShop using LaTeX and thumbpdf? I have

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.