473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Path in warnings depends on /Zi vs. /ZI

Hi,

I have a script that scans the nightly build's output and filters
warnings according to some rules. The script got tripped last night
due to a change in a project's settings. After that, warnings didn't
have a
C:\Project\Module\src\File.cpp
path anymore, but only
..\..\src\File.cpp
(which seems to be the relative path from
C:\Project\Module\Project\VC8
where the module's project file "Module.vcproj" is located.) This has
the problem that it isn't enough for my script to find out the module's
name.
After analyzing yesterday's changes we found the culprit: With /Zi, we
get relative paths in warnings, with /ZI, we get absolute paths.

Is there a reason for this behaviour? Is there anything I can do about
it (besides setting /ZI which we would like to avoid as we suspect it
to make some linker bugs more likely)?

TIA,

Schobi

--
Sp******@gmx.de is never read
I'm HSchober at gmx dot de
"A patched buffer overflow doesn't mean that there's one less way attackers
can get into your system; it means that your design process was so lousy
that it permitted buffer overflows, and there are probably thousands more
lurking in your code."
Bruce Schneier
Oct 31 '07 #1
1 909
Hendrik Schober <Sp******@gmx.dewrote:
Hi,

I have a script that scans the nightly build's output and filters
warnings according to some rules. The script got tripped last night
due to a change in a project's settings. After that, warnings didn't
have a
C:\Project\Module\src\File.cpp
path anymore, but only
..\..\src\File.cpp
(which seems to be the relative path from
C:\Project\Module\Project\VC8
where the module's project file "Module.vcproj" is located.) This has
the problem that it isn't enough for my script to find out the module's
name.
After analyzing yesterday's changes we found the culprit: With /Zi, we
get relative paths in warnings, with /ZI, we get absolute paths.

Is there a reason for this behaviour? Is there anything I can do about
it (besides setting /ZI which we would like to avoid as we suspect it
to make some linker bugs more likely)?

[...]
Nothing?

Schobi

--
Sp******@gmx.de is never read
I'm HSchober at gmx dot de
"A patched buffer overflow doesn't mean that there's one less way attackers
can get into your system; it means that your design process was so lousy
that it permitted buffer overflows, and there are probably thousands more
lurking in your code."
Bruce Schneier
Nov 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Gary | last post by:
Hi! guys, I have a SQL agent job fails because it gets 10 warnings when it runs a stored procedure. These warnings are trivial and can be ignored. Can I make it ignore these warnings and...
3
by: John | last post by:
Hello, I am trying to figure out how to determine if I have fixed an upgrade warning. If I delete the green text then the upgrade warning goes away. However, I would expect it to come back...
3
by: John | last post by:
Hello, I am trying to figure out how to determine if I have fixed an upgrade warning. If I delete the green text then the upgrade warning goes away. However, I would expect it to come back...
6
by: pete142 | last post by:
When I compile this code: typedef unsigned char BYTE; BYTE * IpString(unsigned int ip) { static BYTE ipString; ipString = (BYTE) 0xff & (ip >24); ipString = (BYTE) 0xff & (ip >16);
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.