Skip to content

Commit

Permalink
Merge pull request OSGeo#11217 from rouault/header_pedantic
Browse files Browse the repository at this point in the history
CI: check that all our public headers can be compiled with -Wall -Wpedantic
  • Loading branch information
rouault authored Nov 7, 2024
2 parents 48ddd5d + 8177ae3 commit b89408a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autotest/postinstall/test_gdal-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ set -eu
CXX="${CXX:-c++}"
echo "Test that we can compile all headers with C++11 using ${CXX}"
for i in $prefix/include/*.h; do
${CXX} -std=c++11 -c $(${GDAL_CONFIG} --cflags) $i;
${CXX} -Wall -Wpedantic -std=c++11 -c $(${GDAL_CONFIG} --cflags) $i;
done

echo "$ERRORS tests failed out of $NTESTS"
Expand Down
5 changes: 4 additions & 1 deletion ogr/ogr_recordbatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
// https://github.com/apache/arrow/blob/main/cpp/src/arrow/c/abi.h WARNING: DO
// NOT MODIFY the content as it would break interoperability !

#pragma once
#ifndef OGR_RECORDBATCH_H_INCLUDED
#define OGR_RECORDBATCH_H_INCLUDED

/*! @cond Doxygen_Suppress */

Expand Down Expand Up @@ -123,3 +124,5 @@ extern "C"
#endif

/*! @endcond */

#endif // OGR_RECORDBATCH_H_INCLUDED

0 comments on commit b89408a

Please sign in to comment.