Skip to content

Commit

Permalink
Fix gcc ident pragma warnings
Browse files Browse the repository at this point in the history
Remove all ident pragmas which are unknown to gcc.

Signed-off-by: Brian Behlendorf <[email protected]>
  • Loading branch information
Ricardo M. Correia authored and behlendorf committed Aug 27, 2010
1 parent 0e5b68e commit e5dc681
Show file tree
Hide file tree
Showing 26 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion cmd/zpool/zpool_iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include <libintl.h>
#include <libuutil.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/libefi/include/sys/efi_partition.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ struct partition64 {
/*
* Number of EFI partitions
*/
#if defined(__linux__)
#define EFI_NUMPAR 128 /* Expected by parted-1.8.1 */
#else
#define EFI_NUMPAR 9
#endif

#ifndef _KERNEL
extern int efi_alloc_and_init(int, uint32_t, struct dk_gpt **);
Expand Down
2 changes: 0 additions & 2 deletions lib/libefi/include/sys/uuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#ifndef _SYS_UUID_H
#define _SYS_UUID_H

#pragma ident "%Z%%M% %I% %E% SMI"

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
2 changes: 1 addition & 1 deletion lib/libnvpair/nvpair_alloc_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include <rpc/types.h>
#include <sys/nvpair.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/include/libuutil_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _LIBUUTIL_COMMON_H
#define _LIBUUTIL_COMMON_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <libuutil.h>
#include <libuutil_impl.h>
Expand Down
6 changes: 3 additions & 3 deletions lib/libuutil/include/libuutil_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _LIBUUTIL_IMPL_H
#define _LIBUUTIL_IMPL_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <libuutil.h>
#include <pthread.h>
Expand All @@ -40,11 +40,11 @@ extern "C" {
#endif

void uu_set_error(uint_t);
#pragma rarely_called(uu_set_error)


/*PRINTFLIKE1*/
void uu_panic(const char *format, ...);
#pragma rarely_called(uu_panic)


struct uu_dprintf {
char *uud_name;
Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_avl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_dprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_ident.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_pname.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/libuutil/uu_strtoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include "libuutil_common.h"

Expand Down
2 changes: 1 addition & 1 deletion module/avl/include/sys/avl_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _AVL_IMPL_H
#define _AVL_IMPL_H

#pragma ident "%Z%%M% %I% %E% SMI"


/*
* This is a private header file. Applications should not directly include
Expand Down
2 changes: 1 addition & 1 deletion module/nvpair/include/sys/nvpair_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _NVPAIR_IMPL_H
#define _NVPAIR_IMPL_H

#pragma ident "%Z%%M% %I% %E% SMI"


#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion module/nvpair/nvpair_alloc_fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/stropts.h>
#include <sys/isa_defs.h>
Expand Down
2 changes: 1 addition & 1 deletion module/unicode/include/sys/u8_textprep.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifndef _SYS_U8_TEXTPREP_H
#define _SYS_U8_TEXTPREP_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/isa_defs.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion module/unicode/include/sys/u8_textprep_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#ifndef _SYS_U8_TEXTPREP_DATA_H
#define _SYS_U8_TEXTPREP_DATA_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/types.h>

Expand Down
2 changes: 1 addition & 1 deletion module/unicode/u8_textprep.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"



/*
Expand Down
2 changes: 1 addition & 1 deletion module/unicode/uconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


/*
* Unicode encoding conversion functions among UTF-8, UTF-16, and UTF-32.
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/gzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/debug.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/include/sys/rrwlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifndef _SYS_RR_RW_LOCK_H
#define _SYS_RR_RW_LOCK_H

#pragma ident "%Z%%M% %I% %E% SMI"


#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/include/sys/unique.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifndef _SYS_UNIQUE_H
#define _SYS_UNIQUE_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/zfs_context.h>

Expand Down
2 changes: 1 addition & 1 deletion module/zfs/include/sys/vdev_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _SYS_VDEV_FILE_H
#define _SYS_VDEV_FILE_H

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/vdev.h>

Expand Down
2 changes: 1 addition & 1 deletion module/zfs/include/sys/zfs_rlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifndef _SYS_FS_ZFS_RLOCK_H
#define _SYS_FS_ZFS_RLOCK_H

#pragma ident "%Z%%M% %I% %E% SMI"


#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion module/zfs/unique.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Use is subject to license terms.
*/

#pragma ident "%Z%%M% %I% %E% SMI"


#include <sys/zfs_context.h>
#include <sys/avl.h>
Expand Down

0 comments on commit e5dc681

Please sign in to comment.