Opened 13 months ago

Closed 13 months ago

Last modified 12 months ago

#320 closed enhancement (fixed)

MS VC compiler warnings

Reported by: tk1 Owned by: moo
Priority: trivial Milestone: 3.1.0
Component: build Version: 3.0.3
Keywords: msvc gcc Cc:
Application: PHP Version: 5.4.16
Other Exts: SAPI: Irrelevant
Probability: Blocked By:
Blocking:

Description

While compiling under MS VC 2008 I see such warnings:

ext\xcache-3.0.3\xcache.c(117) : warning C4068: unknown pragma
ext\xcache-3.0.3\xcache.c(118) : warning C4068: unknown pragma
ext\xcache-3.0.3\xcache.c(126) : warning C4068: unknown pragma

It's bacause VC doesn't know.

#pragma GCC pop_options

I managed to avoid those warnings by wrapping this directive with "#ifndef _MSC_VER" and "#endif". But it would be nicer to add some directive known only to GCC.

Change History (2)

comment:1 Changed 13 months ago by moo

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

In 1346:

fixed #320: void warning for gcc only pragma

comment:2 Changed 12 months ago by moo

  • Milestone changed from undecided to 3.1.0
Note: See TracTickets for help on using tickets.