Ticket #1178 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

precompiled.h: clang warnings about c-header

Reported by: historic_bruno Owned by: ben
Priority: Nice to Have Milestone: Alpha 9
Component: Build & Packages Keywords: clang,pch
Cc: Yves

Description

Building on OS X with their Command Line Tools for Xcode - February 2012 package, I get warnings like the following related to precompiled.h:

precompiled.h
clang: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated

Compiler info:

  • i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
  • Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix

Philip noticed this last year and mentioned a possible solution.

Change History

comment:1 Changed 16 months ago by ben

  • Owner set to ben
  • Status changed from new to closed
  • Resolution set to fixed

In 11258:

Fixes clang warning about precompiled.h in C++ mode. Fixes #1178.

comment:2 Changed 16 months ago by historic_bruno

  • Milestone changed from Backlog to Alpha 9
Note: See TracTickets for help on using tickets.