evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[patch] Fix malloc_extension.h to build with g++ -pedantic #461

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include malloc_extension.h
2. Build with g++ -std=gnu++98 -Werror -pedantic

What is the expected output? What do you see instead?
Compile fails with:
/include/gperftools/malloc_extension.h:383: error: comma at end of enumerator 
list

What version of the product are you using?
gperftools 2.0

On what operating system?
   * C++ Compiler:              i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

Please provide any additional information below.
Patch attached

Original issue reported on code.google.com by abhi.na...@gmail.com on 13 Aug 2012 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by chapp...@gmail.com on 3 Nov 2012 at 4:50

GoogleCodeExporter commented 9 years ago
r190 | chappedm@gmail.com | 2012-12-22 15:14:08 -0500 (Sat, 22 Dec 2012) | 2 
lines

issue-461: Fix to malloc_extension.h so that it builds with -std=gnu++98

Original comment by chapp...@gmail.com on 22 Dec 2012 at 8:14