Warnings about deprecation (C4996) when compiling firefox with VC8 express

RESOLVED FIXED

Status

()

Core
Build Config
--
enhancement
RESOLVED FIXED
12 years ago
12 years ago

People

(Reporter: Régis Caspar, Assigned: Benjamin Smedberg)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060211 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060211 Firefox/1.6a1

cl.exe issues lots of useless warnings that can be avoided by defining _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE


Reproducible: Always

Steps to Reproduce:
1. compile firefox with msvc 8 express edition

Actual Results:  
lots of warnings like
"warning C4996: 'strcpy' was declared deprecated
   Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'"

Expected Results:  
No warning

Note: when using 
CFLAGS="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
CXXFLAGS="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
CPPFLAGS="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
environement variables warning are issued only when building nss
(Reporter)

Comment 1

12 years ago
more descriptive summary
Summary: Warnings when compiling firefox with VC8 express → Warnings about deprecation (C4996) when compiling firefox with VC8 express
(Assignee)

Updated

12 years ago
Assignee: nobody → benjamin
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 2

12 years ago
Created attachment 211768 [details] [diff] [review]
Supress stupid warnings, rev. 1
Attachment #211768 - Flags: review?(vladimir)
Comment on attachment 211768 [details] [diff] [review]
Supress stupid warnings, rev. 1

r=vladimir conditional on review of bug 326849 ;)
Attachment #211768 - Flags: review?(vladimir) → review+
(Assignee)

Comment 4

12 years ago
Fixed on trunk.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
(In reply to comment #2)
> Supress stupid warnings, rev. 1

Why is a warning that you shouldn't use strcpy stupid?
You need to log in before you can comment on or make changes to this bug.