Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    ProjectTool & visual studio: Treat Specific Warnings As Errors

    Cinema 4D SDK
    windows c++
    2
    3
    519
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BruceC
      last edited by

      Is there a way to specify the Visual Studio option below in projectdefinition.txt? Thanks!

      Configuration Properties-> C/C++->Advanced->Treat Specific Warnings As Errors
      
      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @BruceC
        last edited by ferdinand

        Hey @BruceC,

        Thank you for reaching out to us. No, that is not possible, at least not in a directly intended way. What you can do, is go into /frameworks/settings/MSVCBase.props and change your error and warning handling there. But you would have to apply that to every project tool / Extended SDK you use.

        The content of the file is used to generate the projects:

        <?xml version="1.0" encoding="utf-8"?>
        <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
          <ImportGroup Label="PropertySheets">
            <Import Project="Base.props" />
          </ImportGroup>
          <PropertyGroup Label="UserMacros" />
          <PropertyGroup />
          <ItemDefinitionGroup>
            <ClCompile>
              <WarningLevel>EnableAllWarnings</WarningLevel>
              <DisableSpecificWarnings>4003;4061;4062;4100;4127;4131;4191;4200;4244;4265;4266;4296;4307;
              4324;4350;4351;4355;4365;4371;4458;4463;4464;4987;4503;4514;4519;4530;4548;4571;4574;4577;
              4592;4611;4623;4625;4626;4628;4640;4647;4668;4710;4711;4714;4738;4768;4774;4820;4826;4868;
              4883;4917;4928;4946;5026;5027;5039;5045;5204;5220;5262;5256%(DisableSpecificWarnings)
              </DisableSpecificWarnings>
              <TreatSpecificWarningsAsErrors>4456;4715;4834;4996</TreatSpecificWarningsAsErrors>
            </ClCompile>
          </ItemDefinitionGroup>
          <ItemGroup />
        </Project>
        

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • B
          BruceC
          last edited by

          Thanks for the reply, @ferdinand

          1 Reply Last reply Reply Quote 0
          • First post
            Last post