Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1178 closed defect (fixed)

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 Patch:

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 (2)

comment:1 by ben, 12 years ago

Owner: set to ben
Resolution: fixed
Status: newclosed

In 11258:

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

comment:2 by historic_bruno, 12 years ago

Milestone: BacklogAlpha 9
Note: See TracTickets for help on using tickets.