Skip to content

Silence spurious/information-only Visual Studio warnings [blocks: #2310]#2552

Closed
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:vs-pragma-spurious
Closed

Silence spurious/information-only Visual Studio warnings [blocks: #2310]#2552
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:vs-pragma-spurious

Conversation

@tautschnig
Copy link
Collaborator

No description provided.

@smowton
Copy link
Contributor

smowton commented Jul 7, 2018

If you're going to disable this everywhere why not just disable the warning globally with a command-line switch?

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed Diffblue compatibility checks (cbmc commit: 40e3928).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/78358511

@tautschnig
Copy link
Collaborator Author

If you're going to disable this everywhere why not just disable the warning globally with a command-line switch?

We could also go that route, but disabling the warnings where issued has the following advantages I'd say:

  1. It makes very explicit where a compiler is raising warnings.
  2. Compilers usually have a good reason to warn, and each warning raised should make you think twice about a particular bit of code.

@smowton
Copy link
Contributor

smowton commented Jul 9, 2018

In general I agree, but these aren't warnings, like you say they're information flagging up a behaviour change since an obsolete version of the compiler (VC++7.1 was released in 2003).

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully, we can soon revert this commit by eliminating these catch-all from the code base.

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You I'm listed as a code owner for this but as I don't have a windows machine and haven't used one in years ... I'm a little bit stumped. The added code is kinda ugly and I don't see how this can be maintained / sustained / checked for. Does the recent change to which VS versions we support obsolete this?

@tautschnig
Copy link
Collaborator Author

I'll add this to my list of "warning-fixes to be re-evaluated" once the other fixes have been merged.

@tautschnig tautschnig self-assigned this Aug 11, 2018
@tautschnig tautschnig changed the title Silence spurious/information-only Visual Studio warnings Silence spurious/information-only Visual Studio warnings [blocks: #2310] Nov 7, 2018
@tautschnig
Copy link
Collaborator Author

Closing as the Visual-Studio-7.1-related warning is now globally disabled in #2310.

@tautschnig tautschnig closed this Nov 15, 2018
@tautschnig tautschnig deleted the vs-pragma-spurious branch November 15, 2018 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants