12.4 Beta C++ : Wrong warning  when using  outer try block.

Following program
int main(int argc, char ** argv) try {} catch(...) {}
compiled with:
CC t.cc +w
gives
"t.cc", line 1: Warning: argc hides the same name in an outer scope.
"t.cc", line 1: Warning: argv hides the same name in an outer scope.
int main(int argc, char ** argv)  { try {} catch(...) {} }
does not give any warnings. )

I always wonder how people are easily able to find bugs that we miss with our millions of tests.
Thanks for reporting.
18535152 - spurious hiding warning on function with func-try-block
regards,
__Fedor.

Similar Messages

  • Flex Builder 3 Beta 2 Expires early when using Flex 2 key, and new SDK

    I was told to use my Flex 2 key to extend the Beta period for
    Flex Builder 3, this worked, today it said I have 99 days left.
    but When I installed the latest SDK and restarted Flex
    Builder 3 Beta 2, it says it expires in 15 days.
    If I put the original SDK back and restart it goes back to 99
    days, so If I switch the SDKs while Eclipse is already loaded it
    seems to stay at 99 days, so now before I start Eclipse I have to
    move the orig SDK back, start Eclipse, then switch SDKs.
    This does not make much sense to me, why does the SDK affect
    the Builder Beta Period at all? is there a fix for this, I have a
    project due but 31st, and I would be screwed if it dies before
    then, I already have flex 2 but I cannot roll back as this project
    relies on Flex Builder 3 Functionality.

    I the probelm we are stating is that we DID enter our flex 2
    key and it DID initially set the expire date out, but I needed to
    use a later SDK and thats when the problem occured. without the
    latest the ImageSnapshot.captureImage does not work at all for me,
    so must use a later SDK. However this morning my Eclipse started
    stating 96 days remaining and I am still using the latest SDK, so
    no idea why it works sometimes and not others.

  • Wrong hues when using Auto Smart Fix

    Photoshop Album Starter Edition 3.0 results in wrong hues (ie reds turning orange, blues turning purple, etc) when I use Auto Smart Fix & when I start slideshow. How do I correct this?

    This is the trial version w/c comes when you download adobe reader. Anyway I have now solved the problem by rolling back my monitor driver (ViewSonic VA720) to the previous default driver. I have also removed that particular monitor in my color management profile.

  • Warning when using -xprofile (C++)

    Hello!
    I experimented with profile feedback optimization in Sun Studio C++ and got tons of warnings when building with -xprofile=use
    warning: Profile feedback data for function <function> is inconsistent. Ignored.
    I also noticed that all functions mentioned in warnings are either:
    - defined in C++ unnamed namespace;
    - member-functions of template classes which use members of unnamed namespace as their parameters.
    I was able to minimize the case to the following:
    $ cat a.cpp
    namespace {
    template<typename T>
    struct P
    T* m_p;
    P(T* p) : m_p(p) {}
    ~P() { delete m_p; }
    T* get() { return m_p; }
    int main()
    P<int> p(new int);
    ++(*p.get());
    return 0;
    $ # compile for collection
    $ CC -xprofile=collect -xO5 a.cpp
    $ # run experiment
    $ ./a.out
    $ ls a.out.profile/
    feedbin.lock feedbin.xprof
    $ # rebuild using profile info
    $ CC -xprofile=use -xO5 a.cpp
    warning: Profile feedback data for function __unnamed_KgMkF5gmoLkTE::P<int>::~P() is inconsistent. Ignored.
    $ CC -V
    CC: Sun C++ 5.10 SunOS_i386 128229-04 2009/11/25
    Usage: CC [ options ] files. Use 'CC -flags' for details
    Any ideas/solutions/workarounds?
    Thanks!

    Sorry, the information I gave in the previous message was misleading.
    You should update the Solaris patch for the profiling library libxprof.so.1
    as well. In general, you should keep all of the patches in the list up to
    date since they are inter-dependent.
    For x86, the current version of the profiler patch is 119961-06:
    % uname -a
    SunOS ... 5.10 Generic_120012-14 i86pc i386 i86pc
    % /opt/sunstudio12.1/bin/version /usr/lib/libxprof.so.1
    version of "/usr/lib/libxprof.so.1": SunOS 5.10 119961-06 Patch 10/07/2009
    For sparc, the current version of the profiler patch is 118683-04:
    % uname -a
    SunOS ... 5.10 Generic_139555-08 sun4u sparc SUNW,SPARC-Enterprise
    % /opt/sunstudio12.1/bin/version /usr/lib/libxprof.so.1
    version of "/usr/lib/libxprof.so.1": SunOS 5.10 118683-04 Patch 10/05/2009
    Note that the Studio compilers use 'fbe' as an assembler, as opposed to using
    the standard Solaris assembler /usr/ccs/bin/as . The patch that includes 'fbe'
    updates the compiler backend components; it does not update the profiling
    support library.

  • Getting wrong values when using sum() and last() functions in aggregations.

    Hi..
    I created a request in presentation servicews it includes " employ id,name,organization.cost center,annul salary,haouly salary, head count". for employ 13 cost centers available so 13 annul salaries for 13 organizations.each has annul saari 10400,hourly salary 10.previously when i run the request with headcount not including salaries headcount is 1 for 13 rows. when head count is not included in the requst and ran request it gives for 13 rows salaries are 10,400,10 respectively. when i add the head count to the previous request the salaries become 135200,130 respectively. actual head for each organization is 1.in the requst it show as 13. the headcount field in business layes uses 'other sum(headcount),date last(headcount). i need it to same values for salaries after addition of
    headcount also.
    Thank you.
    Edited by: user10797474 on May 20, 2009 8:08 AM

    Did you already have a look in the log file to see the SQL which is sent to the DB?
    This might be a modeling issue in your RPD. Check if you have set the correct dimensionlevels for your facts.
    Regards
    John
    http://obiee101.blogspot.com/

  • Wrong time when using java Calender

    Hi All,
    I have a Solaris 9 system. The Timezone for which is set to "TZ=Asia/Colombo". I have written a small java code to get the time using Calender class.
    The problem is I get wrong time and wrong ZONE offset information
    Output of the java code
    bash$ java TimeFile
    Tue Dec 18 12:53:28 LKT 2007
    utcTimeZone ===sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
    ZONE offset ===21600000 //Should be 19800000 Since the system is in UTC+5:30
    DST offset ====0
    System time details
    bash$ date
    Tue Dec 18 12:23:42 LKT 2007
    bash$ date -u
    Tue Dec 18 06:53:47 GMT 2007
    The java version I am using is
    bash$ java -version
    java version "1.4.2_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
    bash$
    Below I have pasted the code
    public class TimeFile
    public static void main(String[] args)
    Calendar currentDateNTime = Calendar.getInstance();
    Date date = currentDateNTime.getTime();
    System.out.println(date);
    int offset = currentDateNTime.get(Calendar.ZONE_OFFSET);
    int dstoffset = currentDateNTime.get(Calendar.DST_OFFSET);
    TimeZone utcTimeZone = TimeZone.getTimeZone("UTC");
    System.out.println("utcTimeZone ===" +utcTimeZone);
    System.out.println();
    System.out.println("ZONE offset ==="+offset);
    System.out.println("DST offset ====" + dstoffset);
    }

    Perhaps you should update to a newer version of Java. If you have to stick with 1.4.2, then you should at least use 1.4.2_15.
    See also http://java.sun.com/javase/timezones/tzdata_versions.html on information about how to update time zone information in Java. In 2006 there was an update to the timezone info also covering Sri Lanka.

  • Library shows wrong ports when using external MIDI

    Whenever I start a new project and choose an external midi track the library displays the wrong ports. I have an Axiom 25, Motif XS6, and a Kurzweil through an Ultralite. The Axiom and Ultralite show correctly but the MOTIF (which has 3 ports) are all under the Axiom Port 1 listing. Any ideas on how to reset the library so it displays the correct ports.

    I found the answer: The Axiom was listed in the default evnironment. when clicking on one of the wayward axioms that appeared in the library it actually produced the right port in the midi track. Then looking at the environment I found that it had produced another axiom with the yamaha port. By clicking on all four axioms in the library I was able to go to the environment and change the name to the proper Yamaha port. They then appeared in the library correctly.
    The secret was setting up the environment correctly.

  • Asha 205 - Something went wrong error when using c...

    sir. my nokia asha 205 start giving me problem when i open my camera the more i open it say that something went wrong
    Moderator's note: We amended the subject so other users can easily identify and answer the concern.

    hi mate, have you checked that you are up to date with the latest firmware for your handset? also try Restoring the phone to factory settings.

  • Wrong Audio When Using Camcorder via Firewire Help

    Hello all,
    I'm having a problem with iMovie. Ok here is what I'm using. Canon ZR960 MiniDV camcorder with external mic input, M-Audio Fast Track USB audio interface and my black Macbook running 10.5.8 leopard.
    Ok I set up my camcorder as a pass through video source via firewire in iMovie 08, and I connect my USB audio interface to the usb port so that I can use professional dynamic recording microphones, Shure SM57, Sennheiser e609...etc for the audio portion of the video instead of the recorded audio from the video camera's built in microphone.
    In iMove, there is an option to choose the Fast Track as the audio source, which I choose.
    But, when I'm done recording, the audio was not from the fast track, it was from the video camera's built in microphone.
    How can I recored the audio from the Fast track instead of the audio from the video camera?

    Connect it via firewire 800. USB2 is not good for audio or video streaming.
    I have 3 D2's connected to my mac pro, works like a charm.
    good luck.

  • Action Script Error  Frequently I receive this warning when using Safari.  Should I be concerned? Frequently I receive this warning when using Safari.  Should I be concerned?

    I've tried to copy the error information without success.

    I typed out the first part of the message.  It reads:  
    SecurityError: Error #2060: Security sandbox violation: Externalinteface caller http:// s0.2mdn.net/3440770/MM Tech Leadership_Cloud Standard_728x90_flash.swf cannot access http://www.newyorker.com/ads/newad.html#http://ad.doubleclick.neet/adj/newyorker .dart/

  • "Object Required" error when using the script block from the code behind

    I try to use the following script block on the code behind page
    <script defer='true' id='NavID' type='text/javascript'>Nav();</script>
    and the function Nav() is on the .aspx page. It gives me the "Object Required" error message. BUT if I add an alert("hello!!!") line inside of the Nav() function, it works fine after the user closes the alert box. Has anyone experienced a similar problem? Please help. Thanks.

    There is no way to troubleshoot this by looking at a picture of the diagram. LabVIEW 6 is almost prehistory and many things have changed, especially the file IO all looks different so it is impossible to tell what you are doing.
    Error 7 is file not found, so most likely your string operations are not correct. What are the full strings? What is the final file name (maybe you are missing a "\" or maybe you are on a different OS type). Put an indicator at the path wire to see what's happening!
    Is this a datalog file?
    (Overall, the code is a bit suspect. Nobody needs a seven frame flat sequence. ) Why do a control and an indicator have the same label?)
    LabVIEW Champion . Do more with less code and in less time .

  • Truncation happens when using out-file to html

    Hi,
    I am exporting data from sql stored procedure to html. I am using a | out-file "file.htm".
    But there is data truncation happens in rows and am not getting full rows. can anyone please help.
    Srinivasan

    I think -Autosize may also helps. Anyways post your code.
    Regards Chen V [MCTS SharePoint 2010]
    That'll still run into truncation if $FormatEnumerationLimit isn't adjusted. If I absolutely have to pipe through ft first, this is the method I use:
    http://poshoholic.com/2010/11/11/powershell-quick-tip-creating-wide-tables-with-powershell/
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Namespace error when using outer join, xmlagg and xmlconcat

    Hi,
    I'm trying to create a xml with following code, but I'm getting error: LPX-00234 namespace "n" is not declared.
    WITH a AS (SELECT XMLELEMENT("n:a", 'a') xmla       
                 FROM dual)
       , b AS (SELECT XMLELEMENT("n:b", XMLAGG(XMLCONCAT(xmla,XMLELEMENT("n:x",'x')))) xmlb    
                 FROM dual
                 LEFT JOIN a ON 1=2)
    SELECT XMLELEMENT("n:root"
                     ,XMLATTRIBUTES('http://n' as "xmlns:n")
                     ,xmlb)
      FROM b; If I remove XMLAGG or XMLCONCAT or set join-clause to "1=1", it works.
    Is there a solution for this, or is this a bug?
    Running on 11.1.0.6.0
    Edit: Works on 11.2, so I suppose a bug. Any workaround for this?
    Kind regards,
    Jan
    Edited by: Jan Leers on Mar 29, 2013 8:19 PM

    Most likely you are hitting a known bug.
    But not sure.
    But what is very important is you have to upgrade your DB version to 9.2.0.4 and above to work with XMLDB . It is highly recomended.
    After that if you still get error, then it is most likely the bug 3554248, file a tar for it.
    Good Luck.

  • Why is it when using my iPhone 4s front camera, the screen sometimes turn black or have blue stripes on it? What's wrong with it and what should I do?

    When using my iPhone 4s front camera, the screen sometimes become black or have blue stripes on it! Is this a hardware or software problem? Can this issue be covered by my warranty? I bought it inmid-december last year, and this problem came at around Late January. It's a rare case, only came about 5 times, but this really concerns me. What's wrong with it? Thank you so much for your concern.

    thank you for your reply
    I brought it to the store and they agreed to give me an exchange. thank goodness!
    I have a new question: I've now transferred my back up datas to my new iphone. They wanted me to register, so I registered (as my old apple ID) and then they asked if I want to restore backup, I did that too. after the restore back up process, the only things that aren't there were my music and apps! what should I do to get them into my new iPhone?

  • Why is the MPE so much better when using Vista?

    I get more realtime playback using Windows Vista than When using Windows 7 with HDV. I can get better GPU and CPU playback both when using Vista for HDV. Why is that? Im using a GT 240 and it kicks *** with Vista. I use a second LCD TV monitor as an NTSC monitor for the realtime previews. I do get some realtime with Windows 7 but only about half as much as with Vista. Something is better about Vista for HDV clips but Idon't know what. I have done several fresh installs and updates. What gives? Any thoughts.

    I have done fresh OS installs and Windows updates. The GT 240 was added the same way. For HDV the Vista OS is better. For AVCHD they are about the same.  I think it is a bug. It works better using Windows 7 if I don't output to the LCD TV monitor. Do any of you use HDV and preview on a NTSC monitor?

Maybe you are looking for

  • Error while deriving the currency from table

    i am getting the below error while simulating the payroll for india. Error while deriving the currency from table T001P & Error during Initialization of payroll. i am SAP HCM Trainee.. practicing at home.

  • Company code not showing in the shopping cart list

    Hello, Can anyone please help me with this? Currently we are on SRM 5.0 with extended and connected to one backend system. Everything works good. Now we are trying to connect another backend system to SRM. The situation is that we have made the same

  • How to increase no of boolean checklist at run time???

    Hello All, I am reading certain names from excel file and storing in an array. And if my array contains 10 strings(Names) then it should create ten Boolean ticks and that name should be given to them. I have done programming but every time it creates

  • Create contact on technical object??

    Hi Experts, We are implementing SAP CRM 7.0 for a utilities company. Our client has the following requirement: They want to log contacts on technical objects, especially on an installation. This contact should not be linked to a business partner. A c

  • Forwarded Email in Orange does not attach images

    Using Orange mail on their website - Ubuntu 10 If I forward an email which contains images only the text is sent